feat: swap macro

This commit is contained in:
Roman Godmaire 2024-05-12 22:10:44 -04:00
parent 07c01a1e39
commit 5f7f7e4aed

View file

@ -19,6 +19,13 @@ pub(super) fn standard() -> HashMap<String, Value> {
(macro* (name args body) ~(define (,name (fn* ,args ,body))) )
},
),
(
"swap",
inline! {
(macro* (a b) ~(define (,a ,b) (,b ,a)))
},
),
// Quoting
(
"quote",
inline! {