Jump to content

Hash join: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(Added F#)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 1,464:
 
=={{header|Kotlin}}==
<lang scala>//data versionclass 1.1.2A(val age: Int, val name: String)
 
data class A(val age: Int, val name: String)
 
data class B(val character: String, val nemesis: String)
Line 1,476 ⟶ 1,474:
val tableC = mutableListOf<C>()
for (a in tableA) {
val value = mm[a.name] ?: continue
if (value == null) continue
for (b in value) tableC.add(C(a, b))
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.