Patch.Macro — patch v0.16.1
View Source Patch.Macro (patch v0.16.1) Summary Functions debug(ast) Utility function that acts like inspect/1 but prints out the Macro as code. match(pattern, expression) Performs an non-hygienic match. match?(pattern, expression) Performs a match, return true if match matches, false otherwise. Functions Link to this function debug(ast) View Source @spec debug(ast :: Macro.t ()) :: Macro.t () Utility function that acts like inspect/1 but prints out the Macro as code.
Link to this macro match(pattern, expression) View Source (macro) @spec match(pattern :: Macro.t (), expression :: Macro.t ()) :: Macro.t () Performs an non-hygienic match. If the match succeeds true is returned, otherwise a MatchError is raised. Since the match is non-hygienic pins can be used from the user-scope and binds will effect user-scope. Link to this macro match?(pattern, expression) View Source (macro) @spec match?(pattern :: Macro.t (), expression :: Macro.t ()) :: Macro.t () Performs a match, return true if match matches, false otherwise.