mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2025-10-16 15:38:44 +02:00
- Update some sheets which have very long sections - Remove `layout: 2017/sheet` (everything has the same layout now) - Remove outdated sheets
717 B
717 B
title, category
title | category |
---|---|
Elixir metaprogramming | Elixir |
Kernel
Most of these magic is defined in Kernel.SpecialForms.
Pseudo-variables
__DIR__ # current dir
__MODULE__ # current module
__CALLER__ # caller of the function
__ENV__
Map.keys(__ENV__)
[:__struct__, :aliases, :context, :context_modules, :export_vars, :file,
:function, :functions, :lexical_tracker, :line, :macro_aliases, :macros,
:module, :requires, :vars]
__CALLER__.module |> Module.definitions_in |> IO.inspect
apply(Enum, :reverse, [[1, 2, 3]])