Elixir's Kernel 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 1/73 shipped • 33 next 1%

Namespace-level inventory for Elixir 1.18: what we already ship, what we may still want, and what we intentionally skip or keep.

Kernel

Elixir 1.18 · Catalog source: version-pinned source manifest elixir:1.18:Kernel

3% shipped
1/34 shipped 33 next 39 explicit non-goals
Shipped (1)

Next

Binary slicing is a useful plain-value helper.

  • binary_part
  • binary_slice

Size helpers have a clean plain-value contract.

  • bit_size
  • byte_size
  • length
  • map_size
  • tuple_size

Scalar helpers have a clean plain-value contract.

  • ceil
  • div
  • floor
  • max
  • min
  • rem
  • round
  • trunc

Tuple element access still has a clean plain-value contract.

  • elem

Head access has a clean plain-value contract.

  • hd

Type-predicate helpers have a clean plain-value contract.

  • is_atom
  • is_binary
  • is_bitstring
  • is_boolean
  • is_float
  • is_function
  • is_integer
  • is_list
  • is_map
  • is_map_key
  • is_number
  • is_pid
  • is_port
  • is_reference
  • is_tuple

Tail access has a clean plain-value contract.

  • tl
Explicit non-goals (39)
  • - Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • -- Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • != Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • !== Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • * Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • ** Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • / Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • + Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • ++ Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • < Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • <= Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • == Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • === Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • =~ Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • > Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • >= Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • apply Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • exit Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • function_exported? Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • get_and_update_in Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • get_in Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • inspect Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • macro_exported? Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • make_ref Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • node Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • not Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • pop_in Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • put_elem Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • put_in Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • self Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • send Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • spawn Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • spawn_link Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • spawn_monitor Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • struct Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • struct! Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • throw Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • to_timeout Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.
  • update_in Skip Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.

« More Elixir functions