Logo

Programming-Idioms

History of Idiom 222 > diff from v6 to v7

Edit summary for version 7 :
New Pascal implementation by user [Bart]

Version 6

2020-04-07, 08:37:31

Version 7

2020-04-07, 17:56:46

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.

Extra Keywords
position
Extra Keywords
position
Code
i := Items.IndexOf(x);