You're right, they should probably live in seq_utils.clj instead. I'll post an issue to move them.
If anyone has strong feelings about names, now would be a good time to air them. My inclination is to leave the names as they are now; while "shuffle" is the name for the Java "random-permutation" function, it mutates the underlying collection, which is what I think when I think "shuffle". -Jason On Feb 11, 2009, at 2:04 PM, bOR_ wrote: > > I was a bit surprised that random-permutation is in lazy-seqs.. there > doesn't seem to be much lazy about it, right? It is just java's > shuffle. > > On Feb 11, 8:16 pm, Phil Hagelberg <p...@hagelb.org> wrote: >> Jason Wolfe <jawo...@berkeley.edu> writes: >>>> Would you consider changing the names of these 2 functions ? >> >>>> random-permutation -> shuffle >>>> random-element -> one-of >> >>>> Shorter names are a trademark of clojure. >>>> "one-of" was taken straight from paip =) >> >>> I'd be OK with shuffle, I guess, but I don't know if one-of is >>> descriptive enough for my taste. I feel like neither are used so >>> often that a slightly longer and descriptive name isn't merited. >> >> I'm not a fan of "one-of". If it has to be shorter, perhaps "pick- >> rand"? >> >> -Phil > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---