Programming-Idioms

History of Idiom 38

Idiom #38 Extract a substring

Find substring t consisting in characters i (included) to j (excluded) of string s.
(character indexes start at 0 unless specified otherwise)

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 56 2020-01-13, 14:28 [JS] Declare result t programming-idioms.org
👁 Δ 55 2020-01-13, 14:28 New JS implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 54 2020-01-13, 14:27 [JS] +DocURL programming-idioms.org
👁 Δ 53 2019-12-08, 00:39 [C#] +DocURL programming-idioms.org
👁 Δ 52 2019-12-06, 02:29 [C#] Previous example was wrong. fernacolo
👁 Δ 51 2019-10-14, 12:24 [Elixir] Dead link: play.elixirbyexample.com has been down for a while programming-idioms.org
👁 Δ 50 2019-09-30, 20:06 New VB implementation by user [silver-dragon] silver-dragon
👁 Δ 49 2019-09-27, 16:30 New Clojure implementation by user [saighdear] saighdear
👁 Δ 48 2019-09-26, 17:10 New Fortran implementation by user [tkoenig] tkoenig
👁 Δ 47 2019-09-26, 16:49 [Lisp] Fix and remove comments Dirk
👁 Δ 46 2019-09-26, 16:48 New Lisp implementation by user [Dirk] Dirk
👁 Δ 45 2018-03-10, 23:49 New Pascal implementation by user [Matek] Matek
👁 Δ 44 2016-11-30, 21:21 [Elixir] Variable t. Variable s. +DocURL. +DemoURL. programming-idioms.org
👁 Δ 43 2016-11-13, 23:06 [Go] Var names s, i, j, t in demo programming-idioms.org
👁 Δ 42 2016-11-13, 23:03 [Ruby] +DemoURL programming-idioms.org
👁 Δ 41 2016-10-19, 21:18 [Java] Fix comments programming-idioms.org
👁 Δ 40 2016-09-20, 16:14 Restored version 37 programming-idioms.org
👁 Δ 39 2016-02-18, 17:22 Restored version 37
👁 Δ 38 2016-02-18, 16:57 New Csharp implementation by user [javasucks]
👁 Δ 37 2016-02-17, 15:52 New Ada implementation by user [Smaehtin]
👁 Δ 36 2016-02-17, 11:19 New Csharp implementation by user [javasucks]
👁 Δ 35 2016-02-16, 18:37 New Cpp implementation by user [GhassanPL]
👁 Δ 34 2016-02-16, 17:09 New Lua implementation by user [jparoz]
👁 Δ 33 2016-01-02, 00:37 New Go implementation by user [lck]
👁 Δ 32 2016-01-01, 22:25 New Go implementation by user [gdey]
👁 Δ 31 2016-01-01, 20:07 New Go implementation by user [gdey]
👁 Δ 30 2016-01-01, 19:58 [Perl] Added the documentation url, and add “$” in front of variables, as you would in perl.
👁 Δ 29 2016-01-01, 01:55 [Go] typo
👁 Δ 28 2016-01-01, 00:18 [Go] typo
👁 Δ 27 2016-01-01, 00:18 New Go implementation by user [lck]
👁 Δ 26 2015-12-18, 03:18 New Erlang implementation by user [elbrujohalcon]
👁 Δ 25 2015-11-30, 12:37
👁 Δ 24 2015-10-29, 14:05
👁 Δ 23 2015-09-28, 20:52
👁 Δ 22 2015-09-28, 20:49
👁 Δ 21 2015-09-06, 16:15
👁 Δ 20 2015-09-05, 15:26
👁 Δ 19 2015-09-05, 15:26
👁 Δ 18 2015-09-03, 15:30
👁 Δ 17 2015-08-26, 21:10
👁 Δ 16 2015-08-25, 20:24
👁 Δ 15 2015-08-22, 19:16
👁 Δ 14 2015-08-22, 19:15
👁 Δ 13 2015-08-22, 16:07
👁 Δ 12 2015-08-22, 16:01
👁 Δ 11 2015-08-22, 02:20
👁 Δ 10 2015-08-22, 00:24
👁 Δ 9 2015-08-21, 23:15
👁 Δ 8 2015-08-21, 23:14
👁 Δ 7 2015-08-20, 15:53
👁 Δ 6 2015-08-20, 10:00
👁 Δ 5 2015-08-20, 09:57
👁 Δ 4 2015-08-20, 06:58
👁 Δ 3 2015-08-01, 17:11
👁 Δ 2 2015-07-31, 19:34
1 2015-05-06, 21:04