Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flix.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ListSet"
description = "A set that just requires equality."
version = "0.4.0"
version = "0.5.0"
flix = "0.53.0"
authors = ["Jonathan Lindegaard Starup"]
10 changes: 5 additions & 5 deletions src/ListSet.flix
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,17 @@ mod ListSet {
/// This is a linear time operation.
///
pub def toString(s: ListSet[t]): String with ToString[t], Eq[t] = {
use StringBuilder.appendString!;
use StringBuilder.appendString;
region rc {
let sb = StringBuilder.empty(rc);
appendString!("ListSet(", sb);
appendString("ListSet(", sb);
match extract(s) {
case hd :: tl =>
appendString!("${hd}", sb);
tl |> List.forEach(x -> appendString!(", ${x}", sb))
appendString("${hd}", sb);
tl |> List.forEach(x -> appendString(", ${x}", sb))
case Nil => ()
};
appendString!(")", sb);
appendString(")", sb);
StringBuilder.toString(sb)
}
}
Expand Down
Loading