Logo

Programming-Idioms

History of Idiom 134 > diff from v42 to v43

Edit summary for version 43 by ruibritopt:
New Kotlin implementation by user [ruibritopt]

Version 42

2019-09-30, 14:10:19

Version 43

2019-10-18, 14:17:34

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
val l = listOf(_a,_b,_c)
Doc URL
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/list-of.html