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

Elixir 1.18 · Catalog source: version-pinned source manifest elixir:1.18: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?
  • at
  • chunk
  • chunk_by
  • chunk_while
  • concat
  • count
  • count_until
  • dedup
  • dedup_by
  • drop
  • drop_every
  • drop_while
  • empty?
  • fetch
  • fetch!
  • filter
  • filter_map
  • find
  • find_index
  • find_value
  • flat_map
  • flat_map_reduce
  • frequencies
  • intersperse
  • into
  • join
  • map
  • map_every
  • map_intersperse
  • map_join
  • map_reduce
  • max
  • max_by
  • member?
  • min
  • min_by
  • min_max
  • min_max_by
  • partition
  • product
  • product_by
  • reduce
  • reject
  • reverse
  • reverse_slice
  • slice
  • slide
  • sort
  • sort_by
  • split
  • split_while
  • split_with
  • sum
  • sum_by
  • take
  • take_every
  • take_while
  • to_list
  • uniq
  • uniq_by
  • unzip
  • with_index
  • zip_reduce
  • zip_with
Explicit non-goals (4)
  • each Skip Side-effect-driven iteration is not a good Locutus target.
  • random Skip Randomized enumeration helpers are lower-value than deterministic collection transforms.
  • shuffle Skip Randomized enumeration helpers are lower-value than deterministic collection transforms.
  • take_random Skip Randomized enumeration helpers are lower-value than deterministic collection transforms.

« More Elixir functions