(amb 'list)
Posted: Sat Oct 31, 2009 8:52 pm
				
				Trying to select a random value from the list.
Result: ((0 0) (0 1) (0 2))
Different combinations of expand, eval, map and apply wont work in my hands. Only working method I have found is the monstercode with eval-string:
But there should be some simple solution, right?
			Code: Select all
(set 'mylist '((0 0) '(0 1) '(0 2)))
(amb mylist)Different combinations of expand, eval, map and apply wont work in my hands. Only working method I have found is the monstercode with eval-string:
Code: Select all
(eval-string (append "(amb '" (join (map string mylist) " '") ")"))