History of Idiom 222 > diff from v12 to v13
Edit summary for version 13 by Plecra:
[Rust] While the task is a little strange, it's perfectly possible in Rust, and this example demonstrates usage of Option
[Rust] While the task is a little strange, it's perfectly possible in Rust, and this example demonstrates usage of Option
↷
Version 12
2020-06-04, 11:25:20
Version 13
2020-07-14, 19:10:14
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.
Comments bubble
The rest is some (potentially useless/ugly) implementation of "returning -1"
Comments bubble