This language bar is your friend. Select your favorite languages!

Idiom #12 Check if list contains a value

Check if list contains a value x.
list is an iterable finite container.

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 60 2018-03-13, 22:11 Admin deletes impl 2250 programming-idioms.org
👁 Δ 59 2018-03-12, 12:57 New Lisp implementation by user [wobray] wobray
👁 Δ 58 2017-10-17, 13:15 [Haskell] common syntax lalaland
👁 Δ 57 2017-05-21, 22:11 [Rust] +DocURL programming-idioms.org
👁 Δ 56 2017-05-21, 22:07 [Rust] See distincts impls 1984 and 1985 programming-idioms.org
👁 Δ 55 2017-05-21, 22:05 New Rust implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 54 2017-05-21, 22:03 New Rust implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 53 2017-05-19, 21:48 [Rust] Moved the comment into the "explain" section and added links bugaevc
👁 Δ 52 2017-04-19, 04:57 New JS implementation by user [mmx] mmx
👁 Δ 51 2016-11-30, 21:11 [Elixir] +DocURL, +DemoURL programming-idioms.org
👁 Δ 50 2016-11-29, 20:25 Linked to idiom #52 [Check if map contains value] programming-idioms.org
👁 Δ 49 2016-10-29, 02:04 [JS] Code > comments
👁 Δ 48 2016-10-19, 11:59 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 47 2016-10-07, 09:08 [Cpp] imports programming-idioms.org
👁 Δ 46 2016-09-21, 12:39 This is about a list, not really "any finite container" programming-idioms.org
👁 Δ 45 2016-06-11, 02:39 fefe fefe
👁 Δ 44 2016-05-04, 11:38 [Go] Type T (not necessary string) programming-idioms.org
👁 Δ 43 2016-03-23, 22:42 [Cpp] missing std::
👁 Δ 42 2016-03-23, 22:42 [Cpp] missing std::
👁 Δ 41 2016-03-23, 22:41 [Cpp] missing std::
👁 Δ 40 2016-03-23, 22:41 [Cpp] missing std::
👁 Δ 39 2016-03-23, 22:41 [Cpp] missing std::
👁 Δ 38 2016-02-18, 16:57 [Cpp] missing std::
👁 Δ 37 2016-02-17, 10:27 [Cpp] missing std::
👁 Δ 36 2016-02-17, 10:25 New Scala implementation by user [meshelton]
👁 Δ 35 2016-02-17, 10:23 New Scala implementation by user [meshelton]
👁 Δ 34 2016-02-16, 21:26 New Scala implementation by user [meshelton]
👁 Δ 33 2016-02-16, 17:27 [Cpp] More idiomatic
👁 Δ 32 2016-02-16, 17:10 New Csharp implementation by user [zehberk]
👁 Δ 31 2016-02-16, 15:29 New Ada implementation by user [Smaehtin]
👁 Δ 30 2016-02-16, 15:12 New Lua implementation by user [jparoz]
👁 Δ 29 2016-01-21, 09:08 [Pascal] imports format
👁 Δ 28 2016-01-10, 00:48 [C] Hum hum
👁 Δ 27 2016-01-10, 00:05 New C implementation by user [piou]
👁 Δ 26 2015-11-30, 12:37
👁 Δ 25 2015-10-29, 14:05
👁 Δ 24 2015-10-25, 19:12
👁 Δ 23 2015-09-03, 21:04
👁 Δ 22 2015-09-03, 13:18
👁 Δ 21 2015-09-03, 12:06
👁 Δ 20 2015-09-03, 12:04
👁 Δ 19 2015-08-26, 19:09
👁 Δ 18 2015-08-26, 14:54
👁 Δ 17 2015-08-22, 06:56
👁 Δ 16 2015-08-22, 06:56
👁 Δ 15 2015-08-22, 06:55
👁 Δ 14 2015-08-22, 06:42
👁 Δ 13 2015-08-21, 23:06
👁 Δ 12 2015-08-21, 08:46
👁 Δ 11 2015-08-20, 14:57
👁 Δ 10 2015-08-20, 14:57
👁 Δ 9 2015-08-20, 08:00
👁 Δ 8 2015-08-20, 07:59
👁 Δ 7 2015-08-18, 20:55
👁 Δ 6 2015-08-18, 20:51
👁 Δ 5 2015-08-01, 16:31
👁 Δ 4 2015-08-01, 16:30
👁 Δ 3 2015-07-31, 18:58
👁 Δ 2 2015-05-06, 21:04
1 2015-04-22, 14:53