Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Php

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.

$ab = array_merge($a, $b);
(def ab (concat a b))

New implementation...