Logo

Programming-Idioms

History of Idiom 134 > diff from v38 to v39

Edit summary for version 39 by chardan:
New Cpp implementation by user [chardan]

Version 38

2019-09-27, 22:42:24

Version 39

2019-09-28, 00:28:42

Idiom #134 Create a new list

Declare and initialize a new list items, containing 3 elements a, b, c.

Idiom #134 Create a new list

Declare and initialize a new list items, containing 3 elements a, b, c.

Extra Keywords
array vector slice tuple
Extra Keywords
array vector slice tuple
Code
list items { a, b, c };
Comments bubble
For most uses, you actually want vector<> rather than list<>.