Logo

Programming-Idioms

History of Idiom 169 > diff from v38 to v39

Edit summary for version 39 by programming-idioms.org:
Admin deletes impl 2261

Version 38

2018-04-23, 18:25:07

Version 39

2018-04-23, 23:04:12

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.

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.

Extra Keywords
size
Extra Keywords
size
Code
local n = #s
Comments bubble
The amount of bytes in s
Doc URL
https://www.lua.org/manual/5.3/manual.html#3.4.7