Text processing/Max licenses in use: Difference between revisions
Content added Content deleted
(→Dumb translated imperative version: tidied.) |
|||
Line 2,285: | Line 2,285: | ||
=={{header|Scala}}== |
=={{header|Scala}}== |
||
===Dumb translated imperative version=== |
===Dumb translated imperative version=== |
||
{{trans|Ada}} |
|||
{{trans|ALGOL 68}} |
|||
{{trans|AutoHotkey}} |
|||
{{trans|AWK}} |
|||
{{trans|Common Lisp}} |
|||
{{trans|E}} |
|||
{{trans|Fortran}} |
|||
{{trans|Go}} |
|||
{{trans|Python}} |
|||
{{trans|Java}} |
|||
{{trans|Julia}} |
|||
{{trans|MAXScript}} |
|||
{{trans|Nim}} |
|||
{{trans|OCaml}} |
|||
{{trans|Perl}} |
|||
{{trans|PL/I}} |
|||
{{trans|PureBasic}} |
|||
{{trans|R}} |
|||
{{trans|REXX}} |
|||
{{trans|Ruby}} |
|||
{{trans|Run BASIC}} |
|||
{{trans|Sidef}} |
|||
{{trans|Tcl}} |
|||
{{trans|Zcl}} |
|||
{{Out}}Best seen running in your browser [https://scastie.scala-lang.org/a31Q3P5gQ36VcAre5i4I7g Scastie (remote JVM)]. |
{{Out}}Best seen running in your browser [https://scastie.scala-lang.org/a31Q3P5gQ36VcAre5i4I7g Scastie (remote JVM)]. |
||
<lang Scala>import java.io.{BufferedReader, InputStreamReader} |
<lang Scala>import java.io.{BufferedReader, InputStreamReader} |
||
Line 2,339: | Line 2,316: | ||
}</lang> |
}</lang> |
||
===Smart Imperative Scala with dirty side effects=== |
===Smart Imperative Scala with dirty side effects=== |
||
{{Out}}Best seen running in your browser [https://scastie.scala-lang.org/2bdByPOUSICgRIMx4KJ29A Scastie (remote JVM)]. |
{{Out}}Best seen running in your browser [https://scastie.scala-lang.org/2bdByPOUSICgRIMx4KJ29A Scastie (remote JVM)]. |