This language bar is your friend. Select your favorite languages!
List;
ArrayList;
List<String> stringList = new ArrayList<>();
stringList.add("hello")
(conj s x)
using System.Collections.Generic;
s.Add(x);
s ~= x;
real, allocatable, dimension(:) :: s

s = [s, x]
s = append(s, x)
s.push(x)
s.push_back(x);
$s[]=$x;
$s[] = $x;
classes
var
  L: TList;
  Item: Pointer;
...
  L.Add(Item);
...
push @s, $x;
s.append(x)
s << x
s.push(x)
s.Add(x)

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

programming-idioms

Related idioms