MG
Size: a a a
MG
MG
fun digit() {
// create a state machine that accepts integer input in the form of a string
val FiniteStateMachine = StateMachines().FiniteStateMachine<String>()
FiniteStateMachine.state.add(FiniteStateMachine.state.defaultState()) {
when (FiniteStateMachine.getInput()) {
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9" -> {
println("is digit")
it.stateList[0].action()
}in which given the input, would have an end recursion depth of
null -> println("EOF")
else -> println("is not digit")
}
}
FiniteStateMachine.input = "12345678964457647".toStack()
FiniteStateMachine.executeDefault()
}
17
ᵛ
data.chunked(3)
:fun main() {
(0..10)
.map { it }
.chunked(3)
.let(::println)
}
MG
MG
Exception in thread "main" java.security.AccessControlException: Access control exception due to security reasons in web playground:
access denied ("java.util.PropertyPermission" "kotlin.ignore.old.metadata" "read")
at FileKt.main (File.kt:-1)
MG
RI
Exception in thread "main" java.security.AccessControlException: Access control exception due to security reasons in web playground:
access denied ("java.util.PropertyPermission" "kotlin.ignore.old.metadata" "read")
at FileKt.main (File.kt:-1)
MG
RI
MG
RI
null
as first argumentRI
MG
MG
RI
MG
MG
odd: n: 924642246
even: n: 924642245
odd: n: 924642244
even: n: 924642243
Process finished with exit code 130 (interrupted by signal 2: SIGINT)
MG
RI