Logo

Programming-Idioms

History of Idiom 46 > diff from v38 to v39

Edit summary for version 39 by foobar:
New Lisp implementation by user [foobar]

Version 38

2018-12-17, 18:31:39

Version 39

2019-09-26, 16:10:07

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
Code
(setf *t* (subseq s 0 5))