lispdoc - results for subst |
(subst new old tree &key key (test #'eql testp) (test-not #'eql notp)) | Function: Substitutes new for subtrees matching old.
|
Example:(defun integrate-from-table (op arg) (let ((rule (get op 'int))) (subst arg (exp-lhs (exp-lhs (exp-lhs rule))) (exp-rhs rule)))) | Mentioned in: CLtL2 - 14.3. Modifying Sequences CLtL2 - 15.4. Substitution of Expressions HyperSpec - Function SUBST, SUBST-IF, SUBST-IF-NOT, NSUBST, NSUBST-IF, NSUBST-IF-NOT PCL - trees |
(subst-if new test tree &key key) | Function: Substitutes new for subtrees for which test is true.
|
| Mentioned in: CLtL2 - 15.4. Substitution of Expressions HyperSpec - Function SUBST, SUBST-IF, SUBST-IF-NOT, NSUBST, NSUBST-IF, NSUBST-IF-NOT PCL - trees | |
(subst-if-not new test tree &key key) | Function: Substitutes new for subtrees for which test is false.
|
| Mentioned in: CLtL2 - 15.4. Substitution of Expressions HyperSpec - Function SUBST, SUBST-IF, SUBST-IF-NOT, NSUBST, NSUBST-IF, NSUBST-IF-NOT PCL - trees | |
(subsetp list1 list2 &key key (test #'eql testp) (test-not nil notp)) | Function: Return T if every element in LIST1 is also in LIST2.
|
Example:(defun set-diff (x y) (if (subsetp y x) (ordered-set-difference x y))) | Mentioned in: CLtL2 - 15.5. Using Lists as Sets HyperSpec - Function SUBSETP PCL - sets |
subsets | |
| Mentioned in: HyperSpec - 1.7 Language Subsets | |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |