Best shuffle: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H) |
imported>Arakov |
||
Line 2,205: | Line 2,205: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
ELENA |
ELENA 6.x : |
||
<syntaxhighlight lang="elena">import system'routines; |
<syntaxhighlight lang="elena">import system'routines; |
||
import extensions; |
import extensions; |
||
Line 2,245: | Line 2,245: | ||
public program() |
public program() |
||
{ |
{ |
||
new string[]{"abracadabra", "seesaw", "grrrrrr", "pop", "up", "a"}.forEach:(s) |
new string[]{"abracadabra", "seesaw", "grrrrrr", "pop", "up", "a"}.forEach::(s) |
||
{ |
{ |
||
var shuffled_s := s.Shuffled; |
var shuffled_s := s.Shuffled; |
||
Line 2,263: | Line 2,263: | ||
The best shuffle of a is a(1) |
The best shuffle of a is a(1) |
||
</pre> |
</pre> |
||
=={{header|Erlang}}== |
=={{header|Erlang}}== |
||
Deterministic version. |
Deterministic version. |