2010-01-26 00:40:58 -05:00
|
|
|
identity_wrap: (x) =>
|
2010-01-26 02:15:08 -05:00
|
|
|
=> x
|
2009-12-25 10:16:59 -05:00
|
|
|
|
|
|
|
result: identity_wrap(identity_wrap(true))()()
|
|
|
|
|
2010-01-24 23:40:45 -05:00
|
|
|
print result
|
2010-01-09 12:12:38 -05:00
|
|
|
|
|
|
|
|
|
|
|
str: 'god'
|
|
|
|
|
|
|
|
result: str.
|
|
|
|
split('').
|
|
|
|
reverse().
|
|
|
|
reverse().
|
|
|
|
reverse()
|
|
|
|
|
2010-01-24 23:40:45 -05:00
|
|
|
print result.join('') is 'dog'
|
2010-01-09 12:12:38 -05:00
|
|
|
|
|
|
|
result: str
|
|
|
|
.split('')
|
|
|
|
.reverse()
|
|
|
|
.reverse()
|
|
|
|
.reverse()
|
|
|
|
|
2010-01-24 23:40:45 -05:00
|
|
|
print result.join('') is 'dog'
|