diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-04-02 14:48:38 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-04-02 14:50:47 -0700 |
commit | 0f176342245b5d1827d5dc1181d310c4bbc832c9 (patch) | |
tree | 935003c420c8d9de719ddfedfd697733cfbe2199 /src/combinator.lisp | |
parent | 31ec2231bb0882d2a10fd141f3d1e03b6c4e47df (diff) | |
download | consfigurator-0f176342245b5d1827d5dc1181d310c4bbc832c9.tar.gz |
replace uses of COLLAPSE-TYPES & drop the function
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/combinator.lisp')
-rw-r--r-- | src/combinator.lisp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/combinator.lisp b/src/combinator.lisp index c1a76a6..9a92362 100644 --- a/src/combinator.lisp +++ b/src/combinator.lisp @@ -98,7 +98,7 @@ Usage notes: ,@forms))))) (define-function-property-combinator eseqprops (&rest propapps) - (:retprop :type (collapse-types (mapcar #'propapptype propapps)) + (:retprop :type (combine-propapp-types propapps) :hostattrs (lambda () (mapc #'propappattrs propapps)) :apply (lambda () (apply-and-print propapps)) :unapply (lambda () (apply-and-print propapps t)))) @@ -106,7 +106,7 @@ Usage notes: (define-function-property-combinator eseqprops-until (condition &rest propapps) "Like ESEQPROPS, but if CONDITION is signalled, handle it simply by skipping remaining elements of PROPAPPS. CONDITION must subtype FAILED-CHANGE." - (:retprop :type (collapse-types (mapcar #'propapptype propapps)) + (:retprop :type (combine-propapp-types propapps) :hostattrs (lambda () (mapc #'propappattrs propapps)) :apply (lambda () (with-skip-failed-changes (:condition condition @@ -118,7 +118,7 @@ remaining elements of PROPAPPS. CONDITION must subtype FAILED-CHANGE." (apply-and-print propapps t))))) (define-function-property-combinator seqprops (&rest propapps) - (:retprop :type (collapse-types (mapcar #'propapptype propapps)) + (:retprop :type (combine-propapp-types propapps) :hostattrs (lambda () (mapc #'propappattrs propapps)) :apply (lambda () (with-skip-failed-changes () @@ -134,7 +134,7 @@ apply the elements of REQUIREMENTS in reverse order." `(eseqprops ,@(reverse requirements) ,propapp)) (define-function-property-combinator silent-seqprops (&rest propapps) - (:retprop :type (collapse-types (mapcar #'propapptype propapps)) + (:retprop :type (combine-propapp-types propapps) :hostattrs (lambda () (mapc #'propappattrs propapps)) :apply (lambda () (with-skip-failed-changes () @@ -286,8 +286,7 @@ in order." (define-function-property-combinator on-change* (propapp on-change &optional unapply) (let ((prop (car propapp))) - (:retprop :type - (collapse-types (propapptype propapp) (propapptype on-change)) + (:retprop :type (combine-propapp-types (list propapp on-change)) :desc (get prop 'desc) :hostattrs (lambda (&rest args) (apply #'propattrs prop args) |