Arc Forumnew | comments | leaders | submitlogin
6 points by sjs 6142 days ago | link | parent

How about this?

  (map [readb stream] (range 1 n))
It probably doesn't perform as well on big inputs.


3 points by CatDancer 6142 days ago | link

I like that better than my code. ^_^

As for performance... hard to say, I think. My version conses up a big list and then reverses it, your version conses up a big list and then maps it. So without some actual testing or analysis...

-----