Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
uses classes;
var
  L: TList;
  Item: Pointer;
...
  L.Add(Item);
...
(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 = [...s, x];
s.push(x);
s.add(x);
s[#s + 1] = x
table.insert(s, x)
$s[]=$x;
push @s, $x;
s.append(x)
s << x
s.push(x);
(reverse (cons x (reverse s)))
s.Add(x)

New implementation...