You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Higher Order Type is written \-> T and accepts any type T or a closure returning T:
fnfoo(a: \-> f64,b: \-> f64) -> \-> f64{return a + b
}
The \ type operator can be thought of as specifying an unknown type ("from something") defined at runtime when calling the function. The type checker reports an error if the "from something" type does not match each other for every argument.
Examples
A higher order line:
line(a: \-> vec4, b: \-> vec4, t : \-> f64) = a + (b - a)* t
Related to #610
A Higher Order Type is written
\-> T
and accepts any typeT
or a closure returningT
:The
\
type operator can be thought of as specifying an unknown type ("from something") defined at runtime when calling the function. The type checker reports an error if the "from something" type does not match each other for every argument.Examples
A higher order line:
A higher order quadratic bezier:
The text was updated successfully, but these errors were encountered: