Roldak/TIMScript

Function Currying Syntax

Roldak opened this issue · 0 comments

suppose :

def f(a: int, b: int, c: int) => a*b+c

let a = 1
let b = 2
let c = 3

then, instead of :

let curried = [a, b, c]() => f(a, b, c)
print curried()

one could write :

let curried = f[a, b, c]
print curried()