diff options
author | elioat <elioat@tilde.institute> | 2024-08-20 16:09:06 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-08-20 16:09:06 -0400 |
commit | 941a5f97c8cd0eaa005a2c3c0395e26f7e37aeb6 (patch) | |
tree | dcfd6e51a5517232af450e08a31171439866309c /js/b/b.js | |
parent | 8b0f342808ce24c11994a9551c0326b9c775c93c (diff) | |
download | tour-941a5f97c8cd0eaa005a2c3c0395e26f7e37aeb6.tar.gz |
*
Diffstat (limited to 'js/b/b.js')
-rw-r--r-- | js/b/b.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/b/b.js b/js/b/b.js index ee33eef..04959c4 100644 --- a/js/b/b.js +++ b/js/b/b.js @@ -20,17 +20,17 @@ // */ -// b is for useful stuff +// b is for useful stuff -// pipe: Runs functions from left to right. -// compose: Runs functions from right to left. -// identity: Returns whatever you give it as is. -// curry: Converts a function to its curried form. +// curry: Converts a function to its curried form, allowing for partial application. +// pipe: Runs functions from left to right, passing the result of one to the next. +// compose: Runs functions from right to left, passing the result of one to the next. +// identity: Returns whatever you give it as is. Useful for composition...sometimes. // match: Creates a curried function to match a regular expression in a string. -// replace: Creates a curried function to replace parts of a string. -// filter: Curried array filtering. +// replace: Creates a curried function to replace parts of a string, based on a regex or substring. +// filter: Curried array filtering by a predicate function. // map: Curried array mapping. -// deepMap: Curried recursive mapping for nested arrays or matrices. +// deepMap: Curried recursive mapping for nested arrays or matrices, of any shape. 'use strict' |