Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- square = (x) -> x*x
- l = [1,2,3,4]
- printL = (curList) ->
- res = ""
- for x in curList
- res = res + " " +x
- res
- myFunc = (curList) ->
- for x in curList
- do (x) ->
- square (x) ->
- x+3
- alert (printL (myFunc l))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement