Jump to content

Greatest element of a list: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(→‎{{header|Euler}}: Sybntax highlight with Mediawiki markup)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 4,754:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren">var max = Fn.new { |a| a.reduce { |m, x| (x > m) ? x : m } }
 
var a = [42, 7, -5, 11.7, 58, 22.31, 59, -18]
9,485

edits

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