[REBOL] Re: Multi-searches
From: joel:neely:fedex at: 21-Feb-2002 5:18
Hi, again, all,
Minor quibble...
Brett Handley wrote:
> ALL evalutes a block of expressions. If during that evaluation
> one of those expressions results in none!
>
... or FALSE ...
> then ALL returns none!. If all the expressions are not none!
> then ALL returns the result of the last expression...
... so that it behaves somewhat like a generalized AND.
-jn-
--
; sub REBOL {}; sub head ($) {@_[0]}
REBOL []
# despam: func [e] [replace replace/all e ":" "." "#" "@"]
; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"}
print head reverse despam "moc:xedef#yleen:leoj" ;