Skip to content

When destructuring

Compare
Choose a tag to compare
@thautwarm thautwarm released this 10 Feb 13:23
· 225 commits to master since this release

The documentations are more exhaustive than before, and something like if-let in Rust is finally introduced in.

@when (a, 1) = tp begin
     a + 1
end

@when let (a, 1) = tp,
               f = x -> x + 1
    f(a)
end