mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 21:35:03 +00:00
add func for convert to symbol
This commit is contained in:
parent
53730d16ef
commit
0f64d24074
@ -32,6 +32,10 @@ class Types implements ILib
|
|||||||
fn (...$args) => implode('', array_map('strval', $args))
|
fn (...$args) => implode('', array_map('strval', $args))
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$env->set('symbol', new CoreFunc('symbol', 'Convert argument to symbol.', 1, 1,
|
||||||
|
fn (string $a) => new Symbol($a)
|
||||||
|
));
|
||||||
|
|
||||||
// Test types
|
// Test types
|
||||||
|
|
||||||
$env->set('type?', new CoreFunc('type?', 'Return the type of argument as a string.', 1, 1,
|
$env->set('type?', new CoreFunc('type?', 'Return the type of argument as a string.', 1, 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user