Jump to content

Execute SNUSP: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 112:
=={{header|Kotlin}}==
{{trans|Go}}
<lang scala>// version 1.1.12
 
// requires 5 chars (10 bytes) of data store
Line 141:
ipr = r
ipc = i
break@findStart
}
}
}
Line 148:
var id = 0
val step = fun() {
if (id and 1 == 0)
ipc += 1 - (id and 2)
else
ipr += 1 - (id and 2)
}
 
// execute
while ((ipr in 0 until cs.size) && (ipc in 0 until cs[ipr].length)) {
Cookies help us deliver our services. By using our services, you agree to our use of cookies.