Logo

Programming-Idioms

History of Idiom 46 > diff from v50 to v51

Edit summary for version 51 by programming-idioms.org:
[Clojure] Variable name s

Version 50

2020-07-18, 20:57:41

Version 51

2020-07-18, 20:58:59

Idiom #46 Extract beginning of string (prefix)

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

Illustration

Idiom #46 Extract beginning of string (prefix)

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

Illustration
Variables
t,s
Variables
t,s
Code
(take 5 "abcdefjhi")
Code
(take 5 s)