1
1
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:
Nicolas Boulenguez 2021-08-30 23:37:49 +02:00 committed by Joel Martin
parent 13a84ba0aa
commit c5b50dbbbe

View File

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