JESS: Multifield matching nil

2005-11-11 Thread Steve Solomon
procket 2) with no following symbols. I would have thought that (sprocket ?id nil) at least would also work, i.e. nil matching the empty list, especially considering that ~~nil matches a non-null symbol. Perhaps my concept of nil is influenced too much by Lisp. Thanks, -Steve Solomon --

JESS: Possible bug: using apply with str-cat inside a function

2005-12-02 Thread Steve Solomon
; baz\""   To concatenate strings inside a function currently I use a foreach loop:   (bind ?res "") (foreach ?str ?args (bind ?res (str-cat ?res ?str)))   where ?args is the multifield parameter of the function as above.   Bug? Or am I not understanding something?