Created
August 19, 2019 05:03
-
-
Save neenjaw/cb8d3a411b9bf8c559d097d29428057d to your computer and use it in GitHub Desktop.
ExMentor Situation
This file contains 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
{:@, [], | |
[ | |
{:spec, [], | |
[ | |
{:"::", [], | |
[ | |
{:two_fer, [], | |
[ | |
{{:., [], [{:__aliases__, [], [:String]}, :t]}, | |
[], []} | |
]}, | |
{{:., [], [{:__aliases__, [], [:String]}, :t]}, | |
[], []} | |
]} | |
]} | |
]} |
This file contains 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, [line: 1], | |
[ | |
{:__aliases__, [line: 1], [:TwoFer]}, | |
[ | |
do: {:__block__, [], [ | |
{:@, [line: 2], | |
[ | |
{:doc, [line: 2], | |
["Two-fer or 2-fer is short for two for one. One for you and one for me.\n"]} | |
]}, | |
{:@, [line: 5], | |
[ | |
{:spec, [line: 5], | |
[ | |
{:"::", [line: 5], | |
[ | |
{:two_fer, [line: 5], | |
[ | |
{{:., [line: 5], [{:__aliases__, [line: 5], [:String]}, :t]}, | |
[line: 5], []} | |
]}, | |
{{:., [line: 5], [{:__aliases__, [line: 5], [:String]}, :t]}, | |
[line: 5], []} | |
]} | |
]} | |
]}, | |
{:def, [line: 6], | |
[ | |
{:two_fer, [line: 6], | |
[{:\\, [line: 6], [{:name, [line: 6], nil}, "you"]}]} | |
]}, | |
{:def, [line: 7], | |
[ | |
{:when, [line: 7], | |
[ | |
{:two_fer, [line: 7], [{:name, [line: 7], nil}]}, | |
{:is_binary, [line: 7], [{:name, [line: 7], nil}]} | |
]}, | |
[ | |
do: {:<<>>, [line: 8], | |
[ | |
"One for ", | |
{:"::", [line: 8], | |
[ | |
{{:., [line: 8], [Kernel, :to_string]}, [line: 8], | |
[{:name, [line: 8], nil}]}, | |
{:binary, [line: 8], nil} | |
]}, | |
", one for me" | |
]} | |
] | |
]}, | |
{:def, [line: 10], | |
[ | |
{:two_fer, [line: 10], [{:_name, [line: 10], nil}]}, | |
[ | |
do: {:raise, [line: 10], | |
[{:__aliases__, [line: 10], [:FunctionClauseError]}]} | |
] | |
]} | |
]} | |
] | |
]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment