From: Chris D. <chr...@do...> - 2010-08-11 12:30:18
|
> Factor `and' operators are working just with booleans from stack. So im > interested whats an idiomatic way to do things like this? Maybe it could be > useful to have lazy left-to-right logical operators that work on quotations > in standart library? I think the && smart short cirtcuit combinator does what you want here. See: <http://docs.factorcode.org/content/article-combinators.short-circuit.smart.html> This lets you pass a sequence of quotations and && will operate on them in a lazy manner. Chris. -- http://www.bluishcoder.co.nz |