Skip to content

Commit

Permalink
remove debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
schurhammer committed May 27, 2023
1 parent b78331e commit e6a76d0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/gleamy_structures/set.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import gleam/order.{Order}
import gleam/list
import gleam/io
import gleam/string
import gleamy_structures/tree/red_black_tree as tree

pub type Set(a) =
Expand Down Expand Up @@ -76,14 +74,7 @@ pub fn take(from set: Set(a), keeping desired: List(a)) -> Set(a) {
}

pub fn to_list(set: Set(a)) -> List(a) {
tree.foldr(
set,
[],
fn(a, i) {
io.println(string.inspect(i))
[i, ..a]
},
)
tree.foldr(set, [], fn(a, i) { [i, ..a] })
}

pub fn union(of first: Set(a), and second: Set(a)) -> Set(a) {
Expand Down

0 comments on commit e6a76d0

Please sign in to comment.