mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
elixir: add catch-all stanza in with-meta
This commit is contained in:
parent
77a0798f8a
commit
520c71f752
@ -203,6 +203,7 @@ defmodule Mal.Core do
|
||||
|
||||
defp with_meta([{type, ast, _old_meta}, meta]), do: {type, ast, meta}
|
||||
defp with_meta([%Function{} = func, meta]), do: %{func | meta: meta}
|
||||
defp with_meta(_), do: nil
|
||||
|
||||
defp deref(args) do
|
||||
apply(&Mal.Atom.deref/1, args)
|
||||
|
Loading…
Reference in New Issue
Block a user