mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Use simpler constructs instead of and-let*
This commit is contained in:
parent
8c38845006
commit
b94fc646fb
1 changed files with 6 additions and 6 deletions
|
@ -37,16 +37,16 @@
|
|||
;; support more than 1 instance.
|
||||
(define (lib:exports ast)
|
||||
(lib:result
|
||||
(and-let* ((code (assoc 'export (cddr ast))))
|
||||
(cdr code))))
|
||||
(let ((code (assoc 'export (cddr ast))))
|
||||
(if code (cdr code) #f))))
|
||||
(define (lib:imports ast)
|
||||
(lib:result
|
||||
(and-let* ((code (assoc 'import (cddr ast))))
|
||||
(cdr code))))
|
||||
(let ((code (assoc 'import (cddr ast))))
|
||||
(if code (cdr code) #f))))
|
||||
(define (lib:body ast)
|
||||
(lib:result
|
||||
(and-let* ((code (assoc 'begin (cddr ast))))
|
||||
(cdr code))))
|
||||
(let ((code (assoc 'begin (cddr ast))))
|
||||
(if code (cdr code) #f))))
|
||||
(define (lib:includes ast)
|
||||
(map
|
||||
(lambda (inc-lst)
|
||||
|
|
Loading…
Add table
Reference in a new issue