Skip to content

Instantly share code, notes, and snippets.

@asonge
Created March 31, 2014 00:35
Show Gist options
  • Save asonge/9882748 to your computer and use it in GitHub Desktop.
Save asonge/9882748 to your computer and use it in GitHub Desktop.
iex(2)> quote do
...(2)> defmodule Blah do
...(2)> def test(omg, :wtf) when omg > 3 do
...(2)> :ok
...(2)> end
...(2)> end
...(2)> end
{:defmodule, [context: Elixir, import: Kernel],
[{:__aliases__, [alias: false], [:Blah]},
[do: {:def, [context: Elixir, import: Kernel],
[{:when, [context: Elixir],
[{:test, [], [{:omg, [], Elixir}, :wtf]},
{:>, [context: Elixir, import: Kernel], [{:omg, [], Elixir}, 3]}]},
[do: :ok]]}]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment