Logo

Programming-Idioms

History of Idiom 117 > diff from v39 to v40

Edit summary for version 40 by Florent:
New Scala implementation by user [Florent]

Version 39

2017-09-27, 12:37:26

Version 40

2017-11-14, 17:32:31

Idiom #117 Get list size

Set n to the number of elements of list x.

Illustration

Idiom #117 Get list size

Set n to the number of elements of list x.

Illustration
Extra Keywords
length
Extra Keywords
length
Code
val n = x.size