Logo

Programming-Idioms

History of Idiom 222 > diff from v19 to v20

Edit summary for version 20 by programming-idioms.org:
+formal variables i, x, items

Version 19

2021-01-17, 17:52:19

Version 20

2021-01-17, 17:52:56

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
Extra Keywords
position
Extra Keywords
position