Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. //implicit parameters
  2. // use _ for unary functions or _1 _2 _3 for multiple arguments functions
  3. fn(_ + 1);
  4. fn(_1 + _2);
  5.  
  6. //explicit parameters
  7. // use x => for single argument
  8. // and [x,y,z] => for multiple arguments
  9.  
  10. fn(x => x + 1);
  11. fn([x,y] => x + y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement