Explorer

core.is-type-part-type

description
Whether a part with this type is a type part: its type is `type`, or it is a function that returns `type` (a type that takes type arguments, such as core.option)
type
Fn(part_type: @core.expression) -> Boolean
expression
fn(part_type$0) =>
  match $0 {
    #type_type(_) =>
      true,
    #type_function(function_type$1) =>
      match $1.return_type {
        #type_type(_) =>
          true,
        _ =>
          false
      },
    _ =>
      false
  }
visibility
public
core.is-type-part-type (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: ALOGwQqAKYCtEWowskfL6vZC_SRXCpOT-MUJrvE52Gk
content hash: x2viapKpNGGIcoz_IGztOzVHrLNuQT41vI8OhszHoa0