Logo

Programming-Idioms

History of Idiom 46 > diff from v25 to v26

Edit summary for version 26 by :
New Lua implementation by user [jparoz]

Version 25

2015-12-18, 02:53:31

Version 26

2016-02-16, 16:06:36

Idiom #46 Extract beginning of string (prefix)

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

Idiom #46 Extract beginning of string (prefix)

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

Code
t = s:sub(5)