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

Idiom #112 Iterate over map entries, ordered by keys

Print each key k with its value x from an associative array mymap, in ascending order of k.

#Edit dateEdit SummaryEditor
👁 Δ 20 2019-01-24, 12:38 New JS implementation by user [1.7.4] 1.7.4
👁 Δ 19 2018-08-29, 18:44 New PHP implementation by user [ricardo_sdl] ricardo_sdl
👁 Δ 18 2018-08-03, 21:23 [Rust] Comments emphasis programming-idioms.org
👁 Δ 17 2018-06-12, 19:01 New Rust implementation by user [GobbleCock] GobbleCock
👁 Δ 16 2017-10-28, 10:33 New Python implementation by user [Oldboy] Oldboy
👁 Δ 15 2016-12-07, 21:59 [Java] Fixed generic types programming-idioms.org
👁 Δ 14 2016-12-07, 21:59 New Java implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 13 2016-12-07, 21:45 New Java implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 12 2016-10-18, 21:25 +keywords programming-idioms.org
👁 Δ 11 2016-04-06, 20:59 New Ruby implementation by user [steenslag]
👁 Δ 10 2016-02-18, 16:58 [Haskell] original author mixed up forM_ with mapM_...
👁 Δ 9 2016-02-17, 04:09 [Haskell] original author mixed up forM_ with mapM_...
👁 Δ 8 2016-02-16, 19:13 New Prolog implementation by user [Boris]
👁 Δ 7 2016-02-16, 18:11 New Haskell implementation by user [JH]
👁 Δ 6 2016-01-09, 18:03 [D]
👁 Δ 5 2016-01-09, 17:59 New D implementation by user [piou]
👁 Δ 4 2016-01-05, 09:50 Linked to idiom #13 [Iterate over map keys and values]
👁 Δ 3 2016-01-05, 00:33 Linked to idiom #113 [Iterate over map entries, ordered by values]
👁 Δ 2 2016-01-05, 00:23 Typo (map map)
1 2016-01-05, 00:20 Idiom creation by user [programming-idioms.org]