Skip to content

New helpers and small cleanups #19

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

Merged
merged 1 commit into from
Mar 21, 2025
Merged

New helpers and small cleanups #19

merged 1 commit into from
Mar 21, 2025

Conversation

freeformz
Copy link
Owner

  • Additional helpers:
    • Map - maps the items in the set and returns them as a new set
    • MapTo - maps the items in the set into a provided set
    • MapToSlice - maps the items in the set and returns them as a slice
    • Filter - filters the items in the set based on the function and returns a new set
    • Reduce - reduces the items in the set to a single value
    • ReduceRight - reduces the items in the ordered set, in backwards order, to a single value
    • ForEach - calls the provided function with each member of the set
    • ForEachRight - calls the provided function for each item in the ordered set, in backwards order.
  • Cleaned up some Examples so they now use New{Ordered,}With instead of New{Ordered,} and multiple Adds

#minor

* Additional helpers:
  * Map - maps the items in the set and returns them as a new set
  * MapTo - maps the items in the set into a provided set
  * MapToSlice - maps the items in the set and returns them as a slice
  * Filter - filters the items in the set based on the function and returns a new set
  * Reduce - reduces the items in the set to a single value
  * ReduceRight - reduces the items in the ordered set, in backwards order, to a single value
  * ForEach - calls the provided function with each member of the set
  * ForEachRight - calls the provided function for each item in the ordered set, in backwards order.
* Cleaned up some Examples so they now use New{Ordered,}With instead of New{Ordered,} and multiple Adds

#minor
@freeformz freeformz enabled auto-merge (squash) March 21, 2025 03:51
@freeformz freeformz merged commit cfd9b06 into main Mar 21, 2025
9 checks passed
@freeformz freeformz deleted the ffz/MoreHelpers branch March 21, 2025 03:53
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