Skip to content

Commit 8b023de

Browse files
TysonMNmoodmosaic
authored andcommitted
uncurried function
1 parent f5dbdf6 commit 8b023de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Hedgehog/Shrink.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ module Shrink =
100100

101101
let inline createTree (destination : ^a) (x : ^a) =
102102
let one = LanguagePrimitives.GenericOne
103-
let rec binarySearchTree (destination : ^a) (x : ^a) =
103+
let rec binarySearchTree ((destination : ^a), (x : ^a)) =
104104
let xs =
105105
towards (destination + one) x
106106
|> Seq.cons destination
107107
|> Seq.pairwise
108-
|> Seq.map (fun (d, x) -> binarySearchTree d x)
108+
|> Seq.map binarySearchTree
109109
Node (x, xs)
110110
if destination = x then
111111
Node (x, Seq.empty)
112112
else
113-
binarySearchTree destination x
113+
binarySearchTree (destination, x)
114114
|> Tree.addChildValue destination

0 commit comments

Comments
 (0)