Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Php
$s[]=$x;

$s is an array and $x will be inserted at the end.
(conj s x)

Works when s is a vector (not a list).

Example:
(conj [1 2 3] 4) => [1 2 3 4]

New implementation...