Code: Select all
(set 'data '((monday (apples 20 30) (oranges 2 4 9)) (tuesday (apples 5) (oranges 32 1))))
But here's a problem I have at the moment:
Code: Select all
(set 'f '(find "a" l))
(set 'c "abc")
(set-ref-all 'l f c)
(println f)
;-> (find "a" "abc")
(println (eval f))
;-> 0
; so it's ok if c is not a list
(set 'f '(find "a" l))
(set 'c '("a" "b" "c")) ; it's quoted
(set-ref-all 'l f c)
(println f)
;-> (find "a" ("a" "b" "c")) ; no quote now.... :(
(println (eval f))
;-> ERR: value expected in function find : "b"