mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 12:35:05 +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.
|
;; support more than 1 instance.
|
||||||
(define (lib:exports ast)
|
(define (lib:exports ast)
|
||||||
(lib:result
|
(lib:result
|
||||||
(and-let* ((code (assoc 'export (cddr ast))))
|
(let ((code (assoc 'export (cddr ast))))
|
||||||
(cdr code))))
|
(if code (cdr code) #f))))
|
||||||
(define (lib:imports ast)
|
(define (lib:imports ast)
|
||||||
(lib:result
|
(lib:result
|
||||||
(and-let* ((code (assoc 'import (cddr ast))))
|
(let ((code (assoc 'import (cddr ast))))
|
||||||
(cdr code))))
|
(if code (cdr code) #f))))
|
||||||
(define (lib:body ast)
|
(define (lib:body ast)
|
||||||
(lib:result
|
(lib:result
|
||||||
(and-let* ((code (assoc 'begin (cddr ast))))
|
(let ((code (assoc 'begin (cddr ast))))
|
||||||
(cdr code))))
|
(if code (cdr code) #f))))
|
||||||
(define (lib:includes ast)
|
(define (lib:includes ast)
|
||||||
(map
|
(map
|
||||||
(lambda (inc-lst)
|
(lambda (inc-lst)
|
||||||
|
|
Loading…
Add table
Reference in a new issue