Re: Vector manipulation problem, possible function for a solution.

2009-11-10 Thread John Harrop
On Tue, Nov 10, 2009 at 1:00 AM, Richard Newman wrote: > > I have a vector a [ [2 3] [4 5] [6 7] ] > > > > And I want to be able to get [2 3 4 5 6 7] > > user=> (reduce into [ [2 3] [4 5] [6 7] ]) > [2 3 4 5 6 7] > This and another solution have already been posted, but there's also: (vec (appl

Re: Vector manipulation problem, possible function for a solution.

2009-11-09 Thread David Brown
On Mon, Nov 09, 2009 at 05:19:41PM -0800, Don wrote: > >I am having a problem with vectors. It seems there should be a >function for this however I am not sure. > >I have a vector a [ [2 3] [4 5] [6 7] ] > >And I want to be able to get [2 3 4 5 6 7] There's a flatten in clojure.contrib.seq-utils

Re: Vector manipulation problem, possible function for a solution.

2009-11-09 Thread Richard Newman
> I have a vector a [ [2 3] [4 5] [6 7] ] > > And I want to be able to get [2 3 4 5 6 7] user=> (reduce into [ [2 3] [4 5] [6 7] ]) [2 3 4 5 6 7] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: Vector manipulation problem, possible function for a solution.

2009-11-09 Thread David Nolen
(use 'clojure.contrib.seq-utils) (flatten [ [2 3] [4 5] [6 7] ]) On Mon, Nov 9, 2009 at 8:19 PM, Don wrote: > > I am having a problem with vectors. It seems there should be a > function for this however I am not sure. > > I have a vector a [ [2 3] [4 5] [6 7] ] > > And I want to be able to get

Vector manipulation problem, possible function for a solution.

2009-11-09 Thread Don
I am having a problem with vectors. It seems there should be a function for this however I am not sure. I have a vector a [ [2 3] [4 5] [6 7] ] And I want to be able to get [2 3 4 5 6 7] Any suggestions greatly appreciated. Thank you. --~--~-~--~~~---~--~~ You