Programming-Idioms

History of Idiom 222

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.

#Edit dateEdit SummaryAuthor
πŸ‘ Ξ” 21 2021-01-29, 18:19 New Dart implementation by user [Equator] Equator
πŸ‘ Ξ” 20 2021-01-17, 17:52 +formal variables i, x, items programming-idioms.org
πŸ‘ Ξ” 19 2021-01-17, 17:52 [Clojure] Variable name items programming-idioms.org
πŸ‘ Ξ” 18 2021-01-17, 17:51 [Clojure] Variable name items programming-idioms.org
πŸ‘ Ξ” 17 2021-01-14, 22:15 New Clojure implementation by user [yvendruscolo] yvendruscolo
πŸ‘ Ξ” 16 2021-01-14, 22:13 New Clojure implementation by user [yvendruscolo] yvendruscolo
πŸ‘ Ξ” 15 2020-07-18, 20:49 New Rust implementation by user [programming-idioms.org] programming-idioms.org
πŸ‘ Ξ” 14 2020-07-18, 20:46 Restored version 12 programming-idioms.org
πŸ‘ Ξ” 13 2020-07-14, 19:10 [Rust] While the task is a little strange, it's perfectly possible in Rust, and this example demonstrates usage of Optio... Plecra
πŸ‘ Ξ” 12 2020-06-04, 11:25 New Rust implementation by user [strom-und-spiele] strom-und-spiele
πŸ‘ Ξ” 11 2020-04-29, 00:34 New Haskell implementation by user [setupminimal] setupminimal
πŸ‘ Ξ” 10 2020-04-28, 19:08 New Python implementation by user [fabrixxm] fabrixxm
πŸ‘ Ξ” 9 2020-04-15, 15:52 [Fortran] Move comment out of snippet programming-idioms.org
πŸ‘ Ξ” 8 2020-04-15, 15:21 New Fortran implementation by user [Thomas kΓΆnig] Thomas kΓΆnig
πŸ‘ Ξ” 7 2020-04-07, 17:56 New Pascal implementation by user [Bart] Bart
πŸ‘ Ξ” 6 2020-04-07, 08:37 Emphasize variable items programming-idioms.org
πŸ‘ Ξ” 5 2020-04-06, 22:58 New Ruby implementation by user [steenslag] steenslag
πŸ‘ Ξ” 4 2020-04-06, 21:38 Linked to idiom #62 [Find substring position] programming-idioms.org
πŸ‘ Ξ” 3 2020-04-06, 21:34 Linked to idiom #12 [Check if list contains a value] programming-idioms.org
πŸ‘ Ξ” 2 2020-04-06, 21:32 New Go implementation by user [programming-idioms.org] programming-idioms.org
1 2020-04-06, 21:27 Idiom creation by user [programming-idioms.org] programming-idioms.org