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
Shipped (1)
Next
Binary slicing is a useful plain-value helper.
binary_partbinary_slice
Size helpers have a clean plain-value contract.
bit_sizebyte_sizelengthmap_sizetuple_size
Scalar helpers have a clean plain-value contract.
ceildivfloormaxminremroundtrunc
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_atomis_binaryis_bitstringis_booleanis_floatis_functionis_integeris_listis_mapis_map_keyis_numberis_pidis_portis_referenceis_tuple
Tail access has a clean plain-value contract.
tl
Explicit non-goals (39)
-
-Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
--Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
!=Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
!==Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
*Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
**Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
/Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
+Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
++Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
<Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
<=Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
==Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
===Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
=~Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
>Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
>=Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
applyMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
exitMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
function_exported?Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
get_and_update_inMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
get_inMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
inspectMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
macro_exported?Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
make_refMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
nodeMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
notMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
pop_inMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
put_elemMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
put_inMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
selfMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
sendMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
spawnMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
spawn_linkMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
spawn_monitorMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
structMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
struct!Much of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
throwMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
to_timeoutMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values. -
update_inMuch of Elixir Kernel is syntax sugar, runtime introspection, or process management rather than plain values.