String length: Difference between revisions

Content added Content deleted
(Adds slope example)
Line 3,031: Line 3,031:


=={{header|Slope}}==
=={{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>
<syntaxhighlight lang="slope">(length (string->bytes "møøse"))</syntaxhighlight>