Skip to content

Commit

Permalink
Add helpful funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Johnson committed Apr 30, 2018
1 parent 77ad773 commit ac44835
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions helpers.scm
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,17 @@
(define classname-parse 'class)
(define next-parsedfile cdr)
(define get-top-parsedfile car)
(define get-instance-state cadr)
(define atom?
(lambda (v)
(not (list? v))))
(define (debug-func? func . args)
(cond
((func (car args))
(error "debug equal" args))
(else (cadr args))))
(define (debug-eq? . args)
(cond
((equal? (car args) (cadr args))
(error "debug equal" args))
(else (cadr args))))

0 comments on commit ac44835

Please sign in to comment.