1
1
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:
Nicolas Boulenguez 2019-06-23 16:59:07 +02:00
parent 77a0798f8a
commit 520c71f752

View File

@ -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)