Skip to content
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

Poteat/additional reifications #94

Merged
merged 26 commits into from
Oct 7, 2024
Merged

Conversation

poteat
Copy link
Owner

@poteat poteat commented Oct 7, 2024

Kind.Collapse is particularly useful for longer / more complex trees of type manipulation

  • Add List.Count to create a frequency map from a list.
  • Add List.Same to check if all elements in a list are equal.
  • Add Object.AtPathInObject to get the value at a path in an object.
  • Reify Object.AtPath to a value-level function.
  • Add Object.Defaults to initialize an object with default values.
  • Add Object.Omit to remove keys from an object.
  • Add Object.Pick to pick keys from an object.
  • Reify Object.Values to a value-level function.
  • Reify List.Slice and List.Splice to value-level functions.
  • Add arg-swapped List.SliceList and List.SpliceList utilities.
  • Add List.Entries to get the entries of a list as a list of 2-tuples.
  • Add String.Entries to get the entries of a string as a list of 2-tuples.
  • Add Kind.Collapse to convert an n-arity kind to a 1-arity kind.

@poteat poteat merged commit 99ef696 into main Oct 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant