Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package utils {
  2. /**
  3.  * The identity function. Returns whatever it is passed.
  4.  * >>> identity(42)
  5.  * 42
  6.  * >>> map(identity, [ null, undefined, {} ])
  7.  * [ null, undefined, {} ]
  8.  * >>>
  9.  */
  10. public function identity(arg:*):* {
  11.     return arg;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement