MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / Action

Class Action

src/main/java/trace/util/Production.kt:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 return r.replace(a, right)
10 }
11 }
12
13 inner class Action(val m: String, val r: () -> Unit) {
14 fun apply(a: String): String {
15 val r = Regex("^" + Regex.escape(m))
16 print(r)
17 return r.replace(a, {mr ->
18 r()
19 ""})
20 }
21 }
22

Callers 1

addActionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected