Jump to content

Equilibrium index: Difference between revisions

m
imported>Arakov
m (→‎{{header|Wren}}: Minor tidy)
Line 3,049:
=={{header|Wren}}==
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
 
var equilibrium = Fn.new { |a|
Line 3,076:
System.print("The equilibrium indices for the following sequences are:\n")
for (test in tests) {
SystemFmt.print("%(Fmt.s(24$24n -> $n", test)), -> %(equilibrium.call(test))")
}</syntaxhighlight>
 
9,490

edits

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