def replicate
import bend-collections@1.0.0.0/spec/lib/common.bend as Commonimport Base
147def replicate(-A: Data, n: Nat, +x: A) -> List<&2, A>:
148 match n:
149 case 0n:
150 Nil{}
151 case 1n+p:
152 Con{x, replicate(A, p, x)}
Uses (2)
Used by (0)
No other definition uses this definition.