We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dedfff commit eb9576eCopy full SHA for eb9576e
1 file changed
core/Control.carp
@@ -13,10 +13,10 @@ other higher order concepts.")
13
result))
14
15
(doc iterate-until "Like `iterate`, but f is applied repeatedly until the predicate `pred` is true.")
16
- (sig iterate-until (Fn [(Ref (Fn [b] b c) d), (Ref (Fn [b] Bool c) e), b] b))
+ (sig iterate-until (Fn [(Ref (Fn [b] b c) d), (Ref (Fn [(Ref b f)] Bool c) e), b] b))
17
(defn iterate-until [f pred start]
18
(let-do [result start]
19
- (while (not (~pred result))
+ (while (not (~pred &result))
20
(set! result (~f result)))
21
22
0 commit comments