Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Obj-c

Idiom #166 Concatenate two lists

Create the list ab containing all the elements of the list a, followed by all the elements of the list b.

@import Foundation;
NSArray *ab=[a arrayByAddingObjectsFromArray:b];
(def ab (concat a b))

New implementation...