Elixir's Enum module in TypeScript
We have 14 Elixir functions so far - help us add more
Got a rainy Sunday afternoon and a taste for a porting puzzle?
- Get inspiration from the Elixir documentation.
- Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.
We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.
Upstream Surface Inventory 6/76 shipped • 66 next 8%
Namespace-level inventory for Elixir 1.18: what we already ship, what we may still want,
and what we intentionally skip or keep.
Enum
8%
shipped
6/72 shipped
66 next
4 explicit non-goals
Shipped (6)
Next
Enum helpers are a high-value functional portability surface for Locutus.
all?any?atchunkchunk_bychunk_whileconcatcountcount_untildedupdedup_bydropdrop_everydrop_whileempty?fetchfetch!filterfilter_mapfindfind_indexfind_valueflat_mapflat_map_reducefrequenciesintersperseintojoinmapmap_everymap_interspersemap_joinmap_reducemaxmax_bymember?minmin_bymin_maxmin_max_bypartitionproductproduct_byreducerejectreversereverse_slicesliceslidesortsort_bysplitsplit_whilesplit_withsumsum_bytaketake_everytake_whileto_listuniquniq_byunzipwith_indexzip_reducezip_with
Explicit non-goals (4)
-
eachSide-effect-driven iteration is not a good Locutus target. -
randomRandomized enumeration helpers are lower-value than deterministic collection transforms. -
shuffleRandomized enumeration helpers are lower-value than deterministic collection transforms. -
take_randomRandomized enumeration helpers are lower-value than deterministic collection transforms.