3 ms·
I think that's just because you are used to see it used that way. And it's not like CoffeeScript invented this. Haskell does it: \x -> x + 1 OCaml does i
by breuleux 11y ago
I think that's just because you are used to see it used that way. And it's not like CoffeeScript invented this.
Haskell does it:
\x -> x + 1
OCaml does it:
fun (x : int) -> x + 1
It is very common in functional languages to use -> both for function bodies and return types.
- webjprgm 11y agoI suppose. Kinda like => for "maps to" in some math / theory classes.