Compare length of two strings: Difference between revisions

Line 1,227:
=={{header|EMal}}==
<syntaxhighlight lang="emal">
List list = text["abcd","123456789","abcdef","1234567", "مرحبا بالعالم", "Привет, мир"]
^|this solves the task doing the comparison by using the diamond operator|^
fun comparator = int by text a, text b do return b.length <> a.length end
Line 1,242:
<pre>
text chars bytes
مرحبا بالعالم &nbsp; 13 25
Привет, мир 11 20
123456789 9 9
1234567 7 7
218

edits