Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • C++
#include <list>
s.push_back(x);

any c++
#include <list>
s.emplace_back(x);

c++ 11
(conj s x)

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

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

New implementation...