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

Method fork

src/main/java/trace/random/RandomCascade.kt:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 fun fork(): RandomCascade {
62 val ret = RandomCascade()
63
64 ret.r.clear()
65 r.forEach { ret.r.add(it.fork()) }
66
67 ret.h.clear()
68 h.forEach { ret.h.add(it) }
69
70 ret.a.clear()
71 a.forEach { ret.a.add(it) }
72 return ret;
73 }
74
75}

Callers

nothing calls this directly

Calls 4

RandomCascadeClass · 0.85
clearMethod · 0.45
forEachMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected