On Tue, Nov 18, 2008 at 3:41 PM, Mayson Lancaster <[EMAIL PROTECTED]> wrote:
> As a Factor newcomer, I'm having some difficulty figuring out how to express
> myself idiomatically.
> ... snip ...
> Are there any reasonably Factorial ways to clean this up?

Factor can tell you, try the following:
\ sum see

Which prints the following:
USING: math ;
IN: sequences
: sum ( seq -- n ) 0 [ + ] binary-reduce ;

Hope that helps,
-Harold

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to