Logo

Programming-Idioms

History of Idiom 46 > diff from v31 to v32

Edit summary for version 32 by :
New Scala implementation by user [meshelton]

Version 31

2016-02-17, 22:46:21

Version 32

2016-02-18, 16:57:59

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
(take 5 "abcdefjhi")