wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Crazy Math Implicits #14

Closed rockt closed 10 years ago

rockt commented 10 years ago

I want to have aliases to be able to write things like λx.x+1, Σ, ⇒, ×

rockt commented 10 years ago

Done for λ and Σ via aa4cbb28c46f0c3211548b55d548304ef661ba50

val n = 'n of ints val lam = λ(n)(Σ(for (i <- 0 ~~ n) yield i) + n) lam.value()(5)