This commit is contained in:
Mike J Innes 2016-11-14 22:02:20 +00:00
parent ca5058f555
commit 6140448f17
1 changed files with 2 additions and 2 deletions

View File

@ -74,6 +74,6 @@ end
macro ml(ex)
@capture(shortdef(ex), ((xs__,) -> body_ ) | (f_(xs__,) = body_)) ||
error("@ml requires a function definition")
ex = process_anon(:($(xs...) -> $body))
f == nothing ? :($(esc(f)) = $ex) : ex
ex = process_anon(:($(xs...,) -> $body))
f == nothing ? ex : :($(esc(f)) = $ex)
end