(bind ?choice (create$ choice ?i))

I think Matthew Vivian wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
> Is there an easy way to bind this type of structure to a variable:
> 
> (choice 1)
> 
> where the integer comes from a variable.
> I have tried the following with no success:
> 
> (bind ?choice (choice ?i ))
> 
> I can see that there is a convoluted way of doing this by asserting a fact
> 
> (assert (?choice ?i))
> 
> then mapping that to a variable on the LHS of a rule but this seems a rather
> messy solution. Is there a better way that springs to mind?
> 
> thanks,
> Matthew
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to