On Tue, Nov 10, 2009 at 1:00 AM, Richard Newman holyg...@gmail.com 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:
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.
--~--~-~--~~~---~--~~
(use 'clojure.contrib.seq-utils)
(flatten [ [2 3] [4 5] [6 7] ])
On Mon, Nov 9, 2009 at 8:19 PM, Don josereyno...@gmail.com 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
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 post
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 that