q icon indicating copy to clipboard operation
q copied to clipboard

Will functions be "first class values"?

Open travis-leith opened this issue 3 years ago • 0 comments

Can I do something like this?

increment(a Int) -> Int {
	return a + 1
}

doUnivariateFunctionTwice(f Int -> Int, x Int) {
    f(f(x))
}

travis-leith avatar Jul 06 '22 14:07 travis-leith