You might want to take a look at the clojure.contrib.combinatorics
library:

http://richhickey.github.com/clojure-contrib/combinatorics-api.html

- James

On Mar 1, 9:36 am, uap12 <anders.u.pers...@gmail.com> wrote:
> I trying to learn Clojure, and the best way fore me is to take a
> "problem" and solve it in a new language.
> But i would like som to point out what to look fore.
>
> The problem is like a Mastermind
> 1. I have numberserie let say 1 2 3 4 5 6 7 8 9
> 2. i pick let say 4 number
> 3. i like to have a list och all 4 digit combinations possible..
>
> Example of digit 4 5 6 3
> So my solution would be to tack
> 4 + and rotate 5 6 3 like
> 4 5 6 3 -> 4 6 3 5 -> 4 3 5 6 -> 4 6 3 5 then move whole serie one
> step
> 5 6 3 4 ......
>
> I don't what a ready solution but som direction, witch function to
> look at etc..
>
> Best regards
> Anders

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to