Logo

Programming-Idioms

History of Idiom 44 > diff from v16 to v17

Edit summary for version 17 by :

Version 16

2015-09-03, 16:28:31

Version 17

2015-09-04, 12:21:46

Idiom #44 Insert element in list

Insert element x at position i in list s. Further elements must be shifted to the right.

Idiom #44 Insert element in list

Insert element x at position i in list s. Further elements must be shifted to the right.

Code
List.insert_at(s, i, x)
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/List.html#insert_at/3
Demo URL
http://play.elixirbyexample.com/s/408363a125