Sort three variables: Difference between revisions

Content added Content deleted
(→‎{{header|AppleScript}}: Added alternative code.)
m (move Scala after Ruby)
Line 2,217: Line 2,217:
bears, oh my!
bears, oh my!
lions, tigers, and</pre>
lions, tigers, and</pre>

==Scala==
As a Functional Programming language embraces the use of immutable variables. Mutability (variables and states) is seen as evil. Scala works rather with transformed collection obtained by functions then mutable variable and variable state. So this task has no sense in modern programming.


=={{header|Ruby}}==
=={{header|Ruby}}==
Line 2,239: Line 2,236:
9/1
9/1
77444.0</pre>
77444.0</pre>

==Scala==
As a Functional Programming language embraces the use of immutable variables. Mutability (variables and states) is seen as evil. Scala works rather with transformed collection obtained by functions then mutable variable and variable state. So this task has no sense in modern programming.


=={{header|Seed7}}==
=={{header|Seed7}}==