Create an object/Native demonstration: Difference between revisions
Content added Content deleted
No edit summary |
(Scala contribution added.) |
||
Line 828: | Line 828: | ||
end |
end |
||
end</lang> |
end</lang> |
||
=={{header|Scala}}== |
|||
{{Out}}Best seen running in your browser either by [https://scalafiddle.io/sf/OuVZ3bT/0 ScalaFiddle (ES aka JavaScript, non JVM)] or [https://scastie.scala-lang.org/qW5qzmdKSZSyAbZEqDROoA Scastie (remote JVM)]. |
|||
<lang Scala>object CreateMapObject extends App { |
|||
val map = Map('A' -> 65, 'B' -> 66, 'C' -> 67) |
|||
println(map) |
|||
}</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |