diff options
author | Eduardo Julian | 2020-10-24 05:05:26 -0400 |
---|---|---|
committer | Eduardo Julian | 2020-10-24 05:05:26 -0400 |
commit | bcd68d4691e7b2f6d56e0ab92b591c14d7a26a48 (patch) | |
tree | 3e739d4b5d963ad98f54e1748c28ea1d33aa7330 /stdlib/source/lux/data/collection/list.lux | |
parent | c006a5fe8e82f6fc7c8cdb9db0f44c06d229f34e (diff) |
Re-named "search" to "one" and "search-all" to "all".
Diffstat (limited to 'stdlib/source/lux/data/collection/list.lux')
-rw-r--r-- | stdlib/source/lux/data/collection/list.lux | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/lux/data/collection/list.lux b/stdlib/source/lux/data/collection/list.lux index 070778080..8e1f83c1c 100644 --- a/stdlib/source/lux/data/collection/list.lux +++ b/stdlib/source/lux/data/collection/list.lux @@ -203,7 +203,7 @@ (#.Some x) (find predicate xs')))) -(def: #export (search check xs) +(def: #export (one check xs) (All [a b] (-> (-> a (Maybe b)) (List a) (Maybe b))) (case xs @@ -216,9 +216,9 @@ (#.Some output) #.None - (search check xs')))) + (one check xs')))) -(def: #export (search-all check xs) +(def: #export (all check xs) (All [a b] (-> (-> a (Maybe b)) (List a) (List b))) (for {## TODO: Stop relying on this ASAP. @@ -239,10 +239,10 @@ (#.Cons x xs') (case (check x) (#.Some output) - (#.Cons output (search-all check xs')) + (#.Cons output (all check xs')) #.None - (search-all check xs'))))) + (all check xs'))))) (def: #export (interpose sep xs) {#.doc "Puts a value between every two elements in the list."} |