Skip to content

Commit

Permalink
try more precise types
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif authored Feb 12, 2025
1 parent d149f7e commit 2da8973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pure/List.mo
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module {
};

public func flatten<T>(list : List<List<T>>) : List<T> {
foldRight(list, null, concat)
foldRight(list, empty<T>(), concat)
};

public func take<T>(list : List<T>, n : Nat) : List<T> =
Expand Down

0 comments on commit 2da8973

Please sign in to comment.