(into [] (concat [1 2] [3 4]))
Different tools for different jobs. And Mark makes a great point
about assuming too much from a particular usage.
On Nov 3, 7:56 pm, mbrodersen wrote:
> Currently (into) takes 2 parameters (destination and source):
>
> (into [] [1 2]) => [1 2]
>
> but not more
On Tue, Nov 3, 2009 at 7:56 PM, mbrodersen wrote:
> It would be nice to have (into) work for more parameters:
>
> (into [] [1 2] [3 4] [5 6 7]) => [1 2 3 4 5 6 7]
If you did this, it would be very easy to get confused and think that:
(into [] [1 2] [3 4] [5 6 7]) would yield [[1 2] [3 4] [5 6 7
Currently (into) takes 2 parameters (destination and source):
(into [] [1 2]) => [1 2]
but not more than 2:
(into [] [1 2] [3 4]) => Wrong number of args...
It would be nice to have (into) work for more parameters:
(into [] [1 2] [3 4] [5 6 7]) => [1 2 3 4 5 6 7]
--~--~-~--~~