repeat returns an infinite seq; replicate returns a finite one.
On Jan 27, 8:53 pm, Shawn Hoover <shawn.hoo...@gmail.com> wrote:
> Why do we have both repeat and replicate? I can sort of keep them straight,
> but as they only differ by arity I wonder if they can be combined... or if
> I'm missing a subtle reason for separate names. A user in IRC threw out the
> possibility of infinite vs. finite functions, but interleave and map seem to
> blur that line.
>
> Shawn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---