Logo

Programming-Idioms

History of Idiom 224 > diff from v3 to v4

Edit summary for version 4 by tkoenig:
New Fortran implementation by user [tkoenig]

Version 3

2020-04-15, 21:51:55

Version 4

2020-04-16, 12:05:19

Idiom #224 Add element to the beginning of the list

Insert element x at the beginning of list items.

Idiom #224 Add element to the beginning of the list

Insert element x at the beginning of list items.

Extra Keywords
prepend prefix start
Extra Keywords
prepend prefix start
Code
list_items = [x, list_items]
Comments bubble
This assumes that list_items is an allocatable array.