mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 13:24:46 +00:00
add not function
This commit is contained in:
parent
8ec2ad4596
commit
463025d43d
@ -36,6 +36,10 @@ class Types implements ILib
|
||||
fn (string $a) => new Symbol($a)
|
||||
));
|
||||
|
||||
$env->set('not', new CoreFunc('not', 'Turns true to false and vice versa.', 1, 1,
|
||||
fn ($a) => !$a
|
||||
));
|
||||
|
||||
// Test types
|
||||
|
||||
$env->set('type', new CoreFunc('type', 'Return the type of argument as a string.', 1, 1,
|
||||
|
Loading…
Reference in New Issue
Block a user