Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif authored Feb 11, 2025
1 parent db6a714 commit 4b956fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pure/List.mo
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ module {
if (n == 0) null else ?(f at, go(at + 1, n - 1));
go(0, n)
}
if (n == 0) null else ?(f n, tabulate(item, n - 1));


public func singleton<T>(item : T) : List<T> = ?(item, null);

public func repeat<T>(item : T, n : Nat) : List<T> =
Expand Down

0 comments on commit 4b956fa

Please sign in to comment.