Jump to content

String length: Difference between revisions

m
(Adds slope example)
Line 3,031:
 
=={{header|Slope}}==
To get length in "runes" (as [[Go]] and slope think of them):
<syntaxhighlight lang="slope">(length "møøse")</syntaxhighlight>
 
=== Character Length ===
To get length in bytes:
<syntaxhighlight lang="slope">(length "møøse")</syntaxhighlight>
=== Byte Lenth ===
<syntaxhighlight lang="slope">(length (string->bytes "møøse"))</syntaxhighlight>
 
37

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.