Programming-Idioms

History of Idiom 46

Idiom #46 Extract beginning of string (prefix)

Create string t consisting of the 5 first characters of string s.

Illustration
#Edit dateEdit SummaryAuthor
👁 Δ 54 2020-07-18, 21:15 [Erlang] sub_string and substr are marked as "obsolete" programming-idioms.org
👁 Δ 53 2020-07-18, 21:14 [Rust] Cleanup demo programming-idioms.org
👁 Δ 52 2020-07-18, 21:01 [Erlang] Dead link programming-idioms.org
👁 Δ 51 2020-07-18, 20:58 [Clojure] Variable name s programming-idioms.org
👁 Δ 50 2020-07-18, 20:57 Admin deletes impl 478: Wrong, a character may be multi-bytes nsmryan
👁 Δ 49 2020-07-18, 20:56 [Rust] +DemoURL programming-idioms.org
👁 Δ 48 2020-07-15, 15:45 New Rust implementation by user [Plecra] Plecra
👁 Δ 47 2020-05-10, 21:35 [Elixir] 404 programming-idioms.org
👁 Δ 46 2019-12-04, 22:57 Restored version 44 nsmryan
👁 Δ 45 2019-12-02, 21:41 [C#] asdf asdf
👁 Δ 44 2019-10-14, 12:24 [Elixir] Dead link: play.elixirbyexample.com has been down for a while programming-idioms.org
👁 Δ 43 2019-09-27, 23:12 New Cobol implementation by user [Roie8] Roie8
👁 Δ 42 2019-09-26, 22:37 New Kotlin implementation by user [miguel] miguel
👁 Δ 41 2019-09-26, 20:23 New Fortran implementation by user [tkoenig] tkoenig
👁 Δ 40 2019-09-26, 16:15 [C] zero-fill t using calloc, malloc does not Datadog
👁 Δ 39 2019-09-26, 16:10 New Lisp implementation by user [foobar] foobar
👁 Δ 38 2018-12-17, 18:31 [Rust] Added indents freecoder
👁 Δ 37 2017-11-30, 21:19 Linked to idiom #167 [Trim prefix] nsmryan
👁 Δ 36 2016-11-30, 21:30 [Elixir] +DemoURL programming-idioms.org
👁 Δ 35 2016-09-20, 16:14 [Pascal] No begin, end. Typo save->safe. nsmryan
👁 Δ 34 2016-02-24, 15:58 [Pascal] No begin, end. Typo save->safe.
👁 Δ 33 2016-02-18, 17:23 Restored version 31
👁 Δ 32 2016-02-18, 16:57 New Scala implementation by user [meshelton]
👁 Δ 31 2016-02-17, 22:46 New Clojure implementation by user [pgon101a]
👁 Δ 30 2016-02-16, 21:41 New Scala implementation by user [meshelton]
👁 Δ 29 2016-02-16, 18:01 New Cpp implementation by user [GhassanPL]
👁 Δ 28 2016-02-16, 17:21 New Csharp implementation by user [zehberk]
👁 Δ 27 2016-02-16, 16:57 New Ada implementation by user [Smaehtin]
👁 Δ 26 2016-02-16, 16:06 New Lua implementation by user [jparoz]
👁 Δ 25 2015-12-18, 02:53 New Erlang implementation by user [elbrujohalcon]
👁 Δ 24 2015-12-18, 02:49 New Erlang implementation by user [elbrujohalcon]
👁 Δ 23 2015-11-30, 12:37 More specific playground link, Comment.
👁 Δ 22 2015-11-17, 21:13 More specific playground link, Comment.
👁 Δ 21 2015-11-14, 22:04 New Go implementation by user [ufm]
👁 Δ 20 2015-10-29, 14:05
👁 Δ 19 2015-10-08, 12:53
👁 Δ 18 2015-09-09, 08:50
👁 Δ 17 2015-09-04, 00:46
👁 Δ 16 2015-09-03, 15:41
👁 Δ 15 2015-09-02, 16:55
👁 Δ 14 2015-09-02, 16:54
👁 Δ 13 2015-09-02, 15:06
👁 Δ 12 2015-09-02, 13:57
👁 Δ 11 2015-09-02, 13:56
👁 Δ 10 2015-09-02, 13:52
👁 Δ 9 2015-08-22, 21:07
👁 Δ 8 2015-08-21, 23:22
👁 Δ 7 2015-08-21, 23:21
👁 Δ 6 2015-08-20, 17:20
👁 Δ 5 2015-08-20, 10:23
👁 Δ 4 2015-08-20, 10:23
👁 Δ 3 2015-08-19, 14:20
👁 Δ 2 2015-07-31, 19:35
1 2015-05-06, 21:04