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
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
> 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
(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
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