Fork me on GitHub
#clara
<
2016-01-11
>
datajohnny01:01:57

how can I make this just return the string to the caller? https://gist.github.com/datajohnny/a927c54a56f00035676e

jthomson12:01:59

@datajohnny: my understanding is that the RHS of a clara rule should be side-effecting. Sometimes, the side effect will be updating the Clara session itself, via insert! and retract!. A common pattern for what you are trying to do would be to insert! a new fact on the RHS of your rule, then query the session for those facts after fire-rules.

jthomson12:01:21

you could follow one of the examples in the clara-examples project