Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
Select your favorite languages :
  • Or search :
(conj s x)
#include <list>
s.emplace_back(x);
#include <list>
s.push_back(x);
s.Add(x);
s ~= x;
s.add(x);
real, allocatable, dimension(:) :: s

s = [s, x]
s = append(s, x)
xs = s ++ [x]
s.push(x);
s = [...s, x];
s.add(x);
table.insert(s, x)
s[#s + 1] = x
$s[]=$x;
uses classes;
var
  L: TList;
  Item: Pointer;
...
  L.Add(Item);
...
push @s, $x;
s.append(x)
s << x
s.push(x);
(reverse (cons x (reverse s)))
s.Add(x)

New implementation...