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

Idiom #119 Deduplicate list

Remove duplicates from list x.
Explain if original order is preserved.

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 52 2019-02-06, 12:10 New Elixir implementation by user [JohnG] JohnG
👁 Δ 51 2019-02-02, 05:07 New Scala implementation by user [Debaran] Debaran
👁 Δ 50 2019-01-03, 09:54 [JS] Original order is preserved. programming-idioms
👁 Δ 49 2019-01-03, 09:54 [JS] Original order is preserved. programming-idioms
👁 Δ 48 2019-01-03, 09:53 [JS] Original order is preserved. programming-idioms
👁 Δ 47 2019-01-03, 09:45 New JS implementation by user [programming-idioms] programming-idioms
👁 Δ 46 2019-01-03, 09:41 New JS implementation by user [programming-idioms] programming-idioms
👁 Δ 45 2019-01-03, 09:40 New JS implementation by user [programming-idioms] programming-idioms
👁 Δ 44 2018-11-05, 12:41 +keyword programming-idioms
👁 Δ 43 2018-10-07, 14:17 Restored version 41 programming-idioms.org
👁 Δ 42 2018-10-06, 15:52 [D] fix typo anonymous
👁 Δ 41 2018-04-11, 21:35 [Go] Comments: T is pointer type programming-idioms.org
👁 Δ 40 2018-04-11, 21:34 [Go] Big-O programming-idioms.org
👁 Δ 39 2018-04-11, 21:32 [Go] Big-O programming-idioms.org
👁 Δ 38 2018-04-11, 21:31 New Go implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 37 2018-04-11, 19:49 New Go implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 36 2018-04-11, 19:45 [Go] Better demo programming-idioms.org
👁 Δ 35 2018-04-08, 22:47 [Java] Valid but not efficient programming-idioms.org
👁 Δ 34 2018-04-07, 10:26 [Java] add two missing import statements canonical.chris
👁 Δ 33 2018-04-07, 10:25 [Java] if you use Set declaration, you need to import it canonical.chris
👁 Δ 32 2018-04-07, 10:23 [Java] clarify the comment canonical.chris
👁 Δ 31 2018-04-07, 10:20 New Java implementation by user [canonical.chris] canonical.chris
👁 Δ 30 2018-03-09, 13:34 [Perl] Comments programming-idioms.org
👁 Δ 29 2018-03-09, 13:32 [Rust] No sample values programming-idioms.org
👁 Δ 28 2017-08-21, 19:41 Admin deletes impl 2094 programming-idioms.org
👁 Δ 27 2017-08-21, 12:41 [Lua] added input Bug38
👁 Δ 26 2017-08-21, 12:38 [Lua] removed unused line Bug38
👁 Δ 25 2017-08-21, 12:38 New Lua implementation by user [Bug38] Bug38
👁 Δ 24 2016-11-17, 16:36 [Rust] +DemoURL programming-idioms.org
👁 Δ 23 2016-11-17, 14:29 New Rust implementation by user [bratushka.v] bratushka.v
👁 Δ 22 2016-09-27, 16:14 keywords programming-idioms.org
👁 Δ 21 2016-09-27, 11:54 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 20 2016-04-21, 10:42 New Perl implementation by user [Roboticus] Roboticus
👁 Δ 19 2016-04-06, 19:06 [Ruby] misread variable name
👁 Δ 18 2016-04-06, 19:05 New Ruby implementation by user [steenslag]
👁 Δ 17 2016-03-21, 00:12 New Pascal implementation by user [JPSII]
👁 Δ 16 2016-03-20, 15:08 [Java] Original ordering is not preserved.
👁 Δ 15 2016-02-25, 22:26 New PHP implementation by user [dotvezz]
👁 Δ 14 2016-02-18, 16:58 [Java] Original ordering is not preserved.
👁 Δ 13 2016-02-17, 13:19 [Java] Original ordering is not preserved.
👁 Δ 12 2016-02-17, 11:05 New Csharp implementation by user [javasucks]
👁 Δ 11 2016-02-16, 18:02 New Haskell implementation by user [JH]
👁 Δ 10 2016-01-29, 01:41 [D]
👁 Δ 9 2016-01-24, 03:06 New Python implementation by user [cym13]
👁 Δ 8 2016-01-24, 03:05 New D implementation by user [cym13]
👁 Δ 7 2016-01-24, 02:53 New D implementation by user [cym13]
👁 Δ 6 2016-01-15, 12:57 New Go implementation by user [programming-idioms.org]
👁 Δ 5 2016-01-15, 12:51 Explain if original order is preserved.
👁 Δ 4 2016-01-15, 10:13 Linked to idiom #118 [List to set]
👁 Δ 3 2016-01-15, 10:12 [Java] HashSet<> -> HashSet<T>
👁 Δ 2 2016-01-15, 10:11 New Java implementation by user [programming-idioms.org]
1 2016-01-15, 10:10 Idiom creation by user [programming-idioms.org]