Programming-Idioms

History of Idiom 218

Idiom #218 List intersection

Create list c containing all unique elements that are contained in both lists a and b.
c should not contain any duplicates, even if a and b do.
The order of c doesn't matter.

#Edit dateEdit SummaryAuthor
👁 Δ 20 2020-08-10, 12:37 New JS implementation by user [Vaporox] Vaporox
👁 Δ 19 2020-07-18, 23:31 [Rust] We want intersection, not union programming-idioms.org
👁 Δ 18 2020-07-15, 18:51 New Rust implementation by user [Plecra] Plecra
👁 Δ 17 2020-05-02, 19:50 [Python] typo programming-idioms.org
👁 Δ 16 2020-05-02, 19:50 New Python implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 15 2020-05-02, 19:48 Restored version 13 programming-idioms.org
👁 Δ 14 2020-05-02, 19:23 [Python] the argument of intersection() can be any iterable. This avoid converting b into a set prior to the intersectio... laowantong
👁 Δ 13 2020-04-30, 20:18 [Haskell] Variable names a, b programming-idioms.org
👁 Δ 12 2020-04-28, 21:46 New Haskell implementation by user [Lalla] Lalla
👁 Δ 11 2020-03-17, 13:45 New Rust implementation by user [CeaselessBanana] CeaselessBanana
👁 Δ 10 2020-01-19, 12:22 [C#] Indeed! programming-idioms.org
👁 Δ 9 2020-01-19, 01:08 [C#] suspect wrong function steenslag
👁 Δ 8 2020-01-19, 00:56 [Ruby] Alternative 2.7 method name steenslag
👁 Δ 7 2020-01-14, 21:07 New C# implementation by user [AL] AL
👁 Δ 6 2020-01-11, 07:43 New Python implementation by user [Oldboy] Oldboy
👁 Δ 5 2020-01-10, 23:13 New Pascal implementation by user [Bart] Bart
👁 Δ 4 2020-01-09, 16:33 [Ruby] Added doc url steenslag
👁 Δ 3 2020-01-09, 16:30 New Ruby implementation by user [steenslag] steenslag
👁 Δ 2 2020-01-09, 14:10 Linked to idiom #119 [Deduplicate list] programming-idioms.org
1 2020-01-09, 13:12 Idiom creation by user [programming-idioms.org] programming-idioms.org