mirror of
https://github.com/kanaka/mal.git
synced 2024-10-05 18:08:55 +03:00
d: allow keyword argument for keyword core function
This commit is contained in:
parent
13a84ba0aa
commit
c5b50dbbbe
@ -42,6 +42,7 @@ static MalType mal_keyword(MalType[] a ...)
|
||||
{
|
||||
verify_args_count(a, 1);
|
||||
auto s = verify_cast!MalString(a[0]);
|
||||
if (s.is_keyword()) return s;
|
||||
return new MalString("\u029e" ~ s.val);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user