This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: cameyo post_id=24928 time=1599032047 user_id=732
the "ref-all" and "ref" functions have a parameter to get data instead of indexes.
> (define (g (x nil)) x)
(lambda ((x nil)) x)
> (define-macro (f) (setf (nth '(0 0 1) g) (args 0)))
(lambda-macro () (setf (nth '(0 0 1) g) (args 0)))
> (f 1)
1
> (g)
1
> (f '(+ 1 2))
'(+ 1 2)
> (g)
(+ 1 2)
Quote from: cameyo post_id=24891 time=1593772007 user_id=732
thank you. I learned new things.
(define rember-f
(lambda (test? a l)
(cond
((null? l) '())
((test? (first l) a) (rest l))
(true (cons (first l) (rember-f test? a (rest l)))))))
> (rember-f = 'tuna '(shrimp salad and tuna salad))
(shrimp salad and salad)