Logo

Programming-Idioms

History of Idiom 169 > diff from v56 to v57

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

Version 56

2019-09-26, 15:28:16

Version 57

2019-09-26, 15:38:33

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Illustration

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Illustration
Extra Keywords
size characters chars number runes
Extra Keywords
size characters chars number runes
Code
(setf n (length s))