blob: fc93d760a2fa940cc4b1c364dd23ee5491cad958 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
(.using
[library
[lux "*"
[abstract
[monad (.only do)]]
[data
["[0]" identity (.only Identity)]]
[math
["[0]" random]
[number
["n" nat]]]
["_" test (.only Test)]]]
[\\library
["[0]" /]])
(def: .public test
Test
(do random.monad
[sample random.nat]
(<| (_.covering /._)
(all _.and
(_.coverage [/.be]
(n.= (++ sample)
(is (Identity Nat)
(/.be identity.comonad
[value (out sample)]
(out (++ value))))))
))))
|