Logo

Programming-Idioms

History of Idiom 222 > diff from v20 to v21

Edit summary for version 21 by Equator:
New Dart implementation by user [Equator]

Version 20

2021-01-17, 17:52:56

Version 21

2021-01-29, 18:19:49

Idiom #222 Find first index of an element in list

Set i to the first index in list items at which the element x can be found, or -1 if items does not contain x.

Idiom #222 Find first index of an element in list

Set i to the first index in list items at which the element x can be found, or -1 if items does not contain x.

Variables
i,x,items
Variables
i,x,items
Extra Keywords
position
Extra Keywords
position
Code
i=items.indexOf(x)