Anonymous user
Search a list of records: Difference between revisions
Scala contribution maintained.
(Scala contribution maintained.) |
|||
Line 2,167:
=={{header|Scala}}==
{{Out}}See it in running in your browser by [https://scalafiddle.io/sf/8OlRzf8/0 ScalaFiddle (JavaScript executed in browser)] or by [https://scastie.scala-lang.org/
<lang Scala>object SearchListOfRecords extends App {
val cities = Vector(
Line 2,195 ⟶ 2,196:
}</lang>
{{Out}}
▲{{Out}}See it in running in your browser by [https://scalafiddle.io/sf/8OlRzf8/0 ScalaFiddle (JavaScript executed in browser)] or by [https://scastie.scala-lang.org/efKOmJgiQv6Q52h2WXYcig Scastie (remote JVM)].
Name of first city whose population is less than 5 million = Khartoum-Omdurman
Population of first city whose name starts with 'A' = 4,580,000</pre>
=={{header|Scheme}}==
{{libheader|Scheme/SRFIs}}
|