Skip to content

Instantly share code, notes, and snippets.

@meh
Created January 17, 2014 22:55
Show Gist options
  • Save meh/8483215 to your computer and use it in GitHub Desktop.
Save meh/8483215 to your computer and use it in GitHub Desktop.

Kernel keywords

  • apply/2
  • apply/3
  • cond/1
  • destructure/2
  • exit/1
  • if/2
  • in/2
  • match?/2
  • nil?/1
  • raise/1
  • raise/2
  • raise/3
  • throw/1
  • unless/2
  • use/2
  • alias/2
  • bc/1
  • case/2
  • fn/1
  • import/2
  • lc/1
  • require/2
  • super/1
  • try/1

Kernel operators

  • !/1
  • !=/2
  • !==/2
  • &&/2
  • */2
  • ++/2
  • +/1
  • +/2
  • --/2
  • -/1
  • -/2
  • ../2
  • //2
  • </2
  • <=/2
  • <>/2
  • ==/2
  • ===/2
  • =~/2
  • >/2
  • >=/2
  • @/1
  • and/2
  • div/2
  • not/1
  • or/2
  • rem/2
  • xor/2
  • |>/2
  • ||/2
  • &/1
  • ./2
  • <<>>/1
  • ^/1
  • {}/1

Kernel defs

  • def/2
  • defdelegate/2
  • defexception/3
  • defimpl/3
  • defmacro/2
  • defmacrop/2
  • defmodule/2
  • defoverridable/1
  • defp/2
  • defprotocol/2
  • defrecord/3
  • defrecordp/3

Kernel guards

  • is_atom/1
  • is_binary/1
  • is_bitstring/1
  • is_boolean/1
  • is_exception/1
  • is_float/1
  • is_function/1
  • is_function/2
  • is_integer/1
  • is_list/1
  • is_number/1
  • is_pid/1
  • is_port/1
  • is_range/1
  • is_record/1
  • is_record/2
  • is_reference/1
  • is_regex/1
  • is_tuple/1

Kernel macro helpers

  • alias!/1
  • var!/1
  • binding/0
  • binding/1
  • binding/2
  • quote/2
  • unquote/1
  • unquote_splicing/1

Kernel sigils

  • sigil_C/2
  • sigil_R/2
  • sigil_S/2
  • sigil_W/2
  • sigil_c/2
  • sigil_r/2
  • sigil_s/2
  • sigil_w/2

Kernel protocol entry points

  • access/2
  • inspect/2
  • to_char_list/1
  • to_string/1

Integer

  • from_string/1 (binary_to_integer/1)
  • from_string/2 (binary_to_integer/2)
  • from_list/1 (list_to_integer/1)
  • from_list/2 (list_to_integer/2)
  • to_string/1 (integer_to_binary/1)
  • to_string/2 (integer_to_binary/2)
  • to_list/1 (integer_to_list/1)
  • to_list/2 (integer_to_list/2)

Float

  • from_string/1 (binary_to_float/1)
  • from_list/1 (list_to_float/1)
  • to_string/1 (float_to_binary/1)
  • to_string/2 (float_to_binary/2)
  • to_list/1 (float_to_list/1)
  • to_list/2 (float_to_list/2)
  • round/1
  • truncate/1 (trunc/1)

Atom

  • to_string/1
  • to_list/1
  • from_string/1 (binary_to_atom/1)
  • from_string!/1 (binary_to_existing_atom/1)
  • from_list/1 (list_to_atom/1)
  • from_list!/1 (list_to_existing_atom/1)

Tuple

  • get/2 (elem/2)
  • put/3 (set_elem/3)
  • from_list/1 (list_to_tuple/1)
  • size/1 (tuple_size/1)

List

  • head/1 (hd/1)
  • tail/1 (tl/1)

Node

  • self/0 (node/0)
  • for/1 (node/1)

Process

  • self/0
  • send/2
  • spawn/1
  • spawn/3
  • spawn_link/1
  • spawn_link/3
  • receive/1

Removed

  • binary_to_term/1
  • binary_to_term/2
  • term_to_binary/1
  • term_to_binary/2

No clue

  • binary_part/3
  • bit_size/1
  • bitstring_to_list/1
  • byte_size/1
  • function_exported?/3
  • iolist_size/1
  • iolist_to_binary/1
  • length/1
  • list_to_bitstring/1
  • macro_exported?/3
  • make_ref/0
  • max/2
  • min/2
  • size/1
  • abs/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment