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

Idiom #170 Get map size

Set n to the number of elements stored in mymap.

This is not always equal to the map capacity.

#Edit dateEdit SummaryEditor
👁 Δ 12 2019-01-02, 11:03 New Pascal implementation by user [Bart] Bart
👁 Δ 11 2018-09-21, 13:25 New D implementation by user [duser] duser
👁 Δ 10 2018-09-06, 19:55 [PHP] Comments emphasis programming-idioms.org
👁 Δ 9 2018-08-23, 17:43 New PHP implementation by user [ricardo_sdl] ricardo_sdl
👁 Δ 8 2018-08-06, 15:40 +keywords programming-idioms
👁 Δ 7 2018-06-12, 20:57 New Rust implementation by user [GobbleCock] GobbleCock
👁 Δ 6 2018-04-08, 20:10 New Java implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 5 2018-04-08, 19:45 New Ruby implementation by user [steenslag] steenslag
👁 Δ 4 2018-04-08, 07:21 New Python implementation by user [bukzor] bukzor
👁 Δ 3 2018-04-06, 20:02 Typo and clarity programming-idioms.org
👁 Δ 2 2018-04-06, 15:11 Linked to idiom #117 [Get list size] programming-idioms.org
1 2018-04-06, 15:10 Idiom creation by user [programming-idioms.org] programming-idioms.org