Solve the no connection puzzle: Difference between revisions

Content added Content deleted
(Scala contribution added.)
Line 2,948: Line 2,948:


=={{header|Scala}}==
=={{header|Scala}}==
{{libheader|Scala sub-repositories}}
{{Out}}Best seen in running your browser either by [https://scalafiddle.io/sf/Ub2LEup/0 ScalaFiddle (ES aka JavaScript, non JVM)] or [https://scastie.scala-lang.org/ZXGSJLFEQe21Frh4Vwp0WA Scastie (remote JVM)].
{{Out}}Best seen in running your browser either by [https://scalafiddle.io/sf/Ub2LEup/0 ScalaFiddle (ES aka JavaScript, non JVM)] or [https://scastie.scala-lang.org/ZXGSJLFEQe21Frh4Vwp0WA Scastie (remote JVM)].
<lang Scala>object NoConnection extends App {
<lang Scala>object NoConnection extends App {
Line 2,973: Line 2,974:
printResult(genRandom.dropWhile(!notSolved(links, _)).head)
printResult(genRandom.dropWhile(!notSolved(links, _)).head)
}</lang>
}</lang>

=={{header|Tcl}}==
=={{header|Tcl}}==
{{tcllib|struct::list}}
{{tcllib|struct::list}}