Macro Lab 2
Implement rotatef as a macro
- (let ((a 1) (b 2)) (rotatef a b) a) => 2
Implement "mydefun" as a macro that works like defun
Implement "mytypecase" as a macro that works like typecase (hint: use typep and cond)
- (typecase x
- (symbol (print ‘symbol))
- (string (print ‘string)))