Last active
August 29, 2015 14:12
-
-
Save bjhaid/55e9672d31db93066636 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule A do | |
defmacro left >| right do | |
quote do | |
:math.pow unquote(left), unquote(right) | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code.require_file("a.exs") | |
defmodule Foo do | |
Code.require_file("a.exs") | |
def pow do | |
Code.require_file("a.exs") | |
2 >| 3 | |
end | |
end | |
IO.inspect Foo.pow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment