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

Idiom #117 Get list size

Set n to the number of elements of list x.

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 43 2018-12-25, 17:00 New Clojure implementation by user [bplatz] bplatz
👁 Δ 42 2018-04-06, 15:11 Linked to idiom #170 [Get map size] programming-idioms.org
👁 Δ 41 2018-01-14, 07:05 New Dart implementation by user [Edward E.] Edward E.
👁 Δ 40 2017-11-14, 17:32 New Scala implementation by user [Florent] Florent
👁 Δ 39 2017-09-27, 12:37 [C] Correct type gpr
👁 Δ 38 2017-09-27, 12:36 [Cpp] Correct type gpr
👁 Δ 37 2017-06-09, 15:30 New Scheme implementation by user [Dodopod] Dodopod
👁 Δ 36 2017-06-07, 14:03 New Csharp implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 35 2017-06-07, 14:00 [Csharp] Typo programming-idioms.org
👁 Δ 34 2017-06-07, 14:00 [Csharp] List class programming-idioms.org
👁 Δ 33 2017-05-27, 19:28 New C implementation by user [Dodopod] Dodopod
👁 Δ 32 2016-11-30, 20:22 [Elixir] +DemoURL programming-idioms.org
👁 Δ 31 2016-11-27, 14:37 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 30 2016-11-27, 14:20 +keyword programming-idioms.org
👁 Δ 29 2016-08-14, 20:29 New D implementation by user [BBaz] BBaz
👁 Δ 28 2016-04-07, 09:04 New Lua implementation by user [Nepta]
👁 Δ 27 2016-03-02, 14:57 New Erlang implementation by user [Licenser]
👁 Δ 26 2016-02-19, 21:33 [PHP] explanation update
👁 Δ 25 2016-02-19, 21:33 New PHP implementation by user [nvius]
👁 Δ 24 2016-02-18, 18:55 Restored version 22
👁 Δ 23 2016-02-18, 16:58 New Elixir implementation by user [iamd3vil]
👁 Δ 22 2016-02-17, 16:56 New Ada implementation by user [Smaehtin]
👁 Δ 21 2016-02-17, 05:38 New Elixir implementation by user [iamd3vil]
👁 Δ 20 2016-02-17, 03:49 [Rust] It was way too complicated.
👁 Δ 19 2016-02-17, 03:47 New Rust implementation by user [Yonash]
👁 Δ 18 2016-02-16, 19:42 New Ruby implementation by user [mg]
👁 Δ 17 2016-02-16, 19:14 New Lisp implementation by user [nklein]
👁 Δ 16 2016-02-16, 19:00 New Haskell implementation by user [JH]
👁 Δ 15 2016-02-16, 18:06 New Csharp implementation by user [zehberk]
👁 Δ 14 2016-02-16, 16:13 [Perl] typo
👁 Δ 13 2016-02-16, 16:13 [Perl] fixed name of array to spec
👁 Δ 12 2016-02-16, 16:12 New Perl implementation by user [Tom Legrady]
👁 Δ 11 2016-02-16, 16:08 New JS implementation by user [about]
👁 Δ 10 2016-02-16, 15:06 New Python implementation by user [Sek]
👁 Δ 9 2016-01-24, 20:32 [Go] +DocURL spec of builtin func len
👁 Δ 8 2016-01-24, 02:23 New D implementation by user [cym13]
👁 Δ 7 2016-01-21, 09:14 [Pascal] Comment emphasize
👁 Δ 6 2016-01-15, 15:50 New Pascal implementation by user [Bart]
👁 Δ 5 2016-01-13, 14:05 New Cpp implementation by user [programming-idioms.org]
👁 Δ 4 2016-01-13, 14:03 New Java implementation by user [programming-idioms.org]
👁 Δ 3 2016-01-13, 14:02 New Java implementation by user [programming-idioms.org]
👁 Δ 2 2016-01-13, 13:58 [Go] The list could be a slice, but also an array
1 2016-01-13, 13:57 Idiom creation by user [programming-idioms.org]