Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //implicit parameters
- // use _ for unary functions or _1 _2 _3 for multiple arguments functions
- fn(_ + 1);
- fn(_1 + _2);
- //explicit parameters
- // use x => for single argument
- // and [x,y,z] => for multiple arguments
- fn(x => x + 1);
- fn([x,y] => x + y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement