Longest string challenge: Difference between revisions
Content deleted Content added
Added Wren |
→{{header|Wren}}: Now uses sub-string operator rather than SkipSequence. |
||
Line 2,281: | Line 2,281: | ||
var longer = Fn.new { |a, b| |
var longer = Fn.new { |a, b| |
||
while (!a.isEmpty && !b.isEmpty) { |
while (!a.isEmpty && !b.isEmpty) { |
||
a = a |
a = a[1..-1] |
||
b = b |
b = b[1..-1] |
||
} |
} |
||
return a.count |
return a.count |