|
definition: |
replicateDist :: Int -> RT (Dist a) -> Dist [a] replicateDist n rt | n == 0 = certainly [] | otherwise = joinWith (:) (pick rt) (replicateDist (n - 1) rt) |
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Independently replicates a distribution a given number of times. In order to behave properly, the given distribution is required to be a run-time choice value (see type synonym 'RT'). |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_) |-> _}
|
|
name: |
replicateDist |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Prelude.Int -> (() -> Dist a) -> Dist [a] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |