-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/groupoid #63
Closed
Closed
Feature/groupoid #63
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepTransform Transforms a recursive iterable by a given function. Works like deepMap but allows you to stop transforming at any point of the tree. The traversing happens depth first. deepFind Goes over every `{ key, value }` of a recursive iterable data structure (for arrays being numeric key and the value at the key position), and uses a function to extract elements at any point in the tree onto an array that is returned. If a third argument, the limit, is provided, it will stop iterating as soon as the number of found objects reaches that limit. Why? Because this will allow me to find the first two nested occurrences of a terms object with a field property and to modify the first so that it has: `collect_mode: 'breadth_first'`
More abstract universal [foldWhile](#58), for infinite reducers.
sadasant
force-pushed
the
feature/groupoid
branch
3 times, most recently
from
March 16, 2017 16:01
3caff58
to
2944228
Compare
sadasant
force-pushed
the
feature/groupoid
branch
from
March 17, 2017 13:52
2944228
to
227f9f2
Compare
sadasant
force-pushed
the
feature/groupoid
branch
2 times, most recently
from
March 18, 2017 04:40
f348d19
to
f1b5a25
Compare
sadasant
force-pushed
the
feature/groupoid
branch
from
March 18, 2017 15:28
f1b5a25
to
174afd1
Compare
sadasant
force-pushed
the
feature/groupoid
branch
from
March 18, 2017 15:30
174afd1
to
bd8098b
Compare
sadasant
force-pushed
the
feature/groupoid
branch
from
March 19, 2017 18:49
d314d9b
to
a1f9ff2
Compare
Just an update here - conversation on this has been happening on the PR/Issues for Ramda, lodash, and fantasy land (fantasyland/fantasy-land#232) |
Closing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Studied a bit and found out that the foldWhile/flowReduce were an implementation of an automata, a finite state machine, but with non-deterministic data structures and an unbounded number of generators... which is generalized in Category Theory as the Groupoid Category. See https://en.wikipedia.org/wiki/Automata_theory#Connection_to_category_theory
This implementation satisfies exactly the same tests as flowReduce, but is completely stripped of lodash utilities for clarity.
The name is particularly tempting since is easy to pronounce, funny enough to remember, and technically precise 😱
Please review 😻