We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fn
fn(A, B, C) -> D
fn F(A, B, C) -> D
fn foo[T](x: X) -> Y { ... }
fn foo[T]
const foo[T]: fn foo[T]
impl foo[T]: fn (fn foo[T])(X) -> D
+
?
*
Fork
Drop
fn map[T, U, F; F*, fn F(T) -> I](list: List[T], f: F) -> List[U] { ... } struct MulBy(N32); mod MulBy { pub impl call: fn MulBy(N32) -> N32 { fn call(MulBy(a): N32, b: N32) -> N32 { a * b } } } fn curry_mul(a: N32) -> MulBy { MulBy(a) } curry_mul(2)(23) // 46
The text was updated successfully, but these errors were encountered:
No branches or pull requests
fn(A, B, C) -> D
type with anfn F(A, B, C) -> D
traitfn foo[T](x: X) -> Y { ... }
creates:fn foo[T]
const foo[T]: fn foo[T]
impl foo[T]: fn (fn foo[T])(X) -> D
fn
expressions create unique, unnameable type, with inherent implementation of the appropriatefn
trait+
/?
/*
suffix tofn
keyword to additionally implementFork
/Drop
(see vine:Fork
/Drop
#171)fn
impl items work?The text was updated successfully, but these errors were encountered: