Jump to content

Symmetric difference: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(added scheme example)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 1,439:
 
=={{header|Kotlin}}==
<lang scala>// version 1.1.12
 
fun main(args: Array<String>) {
Line 1,446:
println("A = $a")
println("B = $b")
val c = a - b
println("A \\ B = $c")
val d = b - a
Cookies help us deliver our services. By using our services, you agree to our use of cookies.