Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 268 Bytes
identity = (el,callback) ->
delayed = -> callback(el)
setTimeout delayed,100
container=[]
for n in [1 to 10]
identity(n,cont(x))
# cont(x) is the continuation that put the value of cb function inside x
container.push(x) if x > 5
console.log(container)