Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Fortran
real, allocatable, dimension(:) :: s

s = [s, x]
(conj s x)

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

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

New implementation...