summaryrefslogtreecommitdiffstats
path: root/lib/lists.nix
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2019-08-05 14:06:20 +0300
committerdanbst <abcz2.uprola@gmail.com>2019-08-05 14:06:20 +0300
commitd0413360d3a6c51dc56d4ce0ab07ad4678a83ada (patch)
tree85c440a5a9b401b0d89bbad3fc093c421853c7ad /lib/lists.nix
parent0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3 (diff)
rename foreach -> forEach
Diffstat (limited to 'lib/lists.nix')
-rw-r--r--lib/lists.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lists.nix b/lib/lists.nix
index f9953720ee10..e4fcf959b60c 100644
--- a/lib/lists.nix
+++ b/lib/lists.nix
@@ -24,15 +24,15 @@ rec {
/* Apply the function to each element in the list. Same as `map`, but arguments
flipped.
- Type: foreach :: [a] -> (a -> b) -> [b]
+ Type: forEach :: [a] -> (a -> b) -> [b]
Example:
- foreach [ 1 2 ] (x:
+ forEach [ 1 2 ] (x:
toString x
)
=> [ "1" "2" ]
*/
- foreach = xs: f: map f xs;
+ forEach = xs: f: map f xs;
/* “right fold” a binary function `op` between successive elements of
`list` with `nul' as the starting value, i.e.,