lib: remove upstreamed function repeat (replicate)

This commit is contained in:
2023-07-28 21:51:40 +02:00
parent b5874e2bcd
commit 0137f4f5a9
4 changed files with 7 additions and 13 deletions

View File

@@ -3,9 +3,6 @@ let
inherit (stdlib.trivial) const;
inherit (stdlib.lists) range any all;
in {
# a -> Int -> [a]
repeat = item: times: map (const item) (range 1 times);
# [Bool] -> Bool
any' = any (boolean: boolean);