Skip to content

Commit

Permalink
Fixing some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Jul 11, 2017
1 parent ea94413 commit c390d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/data/sorted-set.kk
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ abstract struct sorted-set<a>(
)

public fun from-list(list: list<a>, compare: (a, a) -> order): sorted-set<a> {
Set(compare, from-list(list, compare))
Sorted-set(compare, from-list(list, compare))
}

public fun to-list(set: sorted-set<a>): list<a> {
to-list(set.tree)
}

public fun empty(compare: (a, a) -> order): sorted-set<a> {
Set(compare, empty)
Sorted-set(compare, empty)
}

public fun has?(set: sorted-set<a>, value: a): bool {
Expand Down

0 comments on commit c390d3d

Please sign in to comment.