On Tue, Nov 18, 2008 at 4:11 PM, Alex Chapman <[EMAIL PROTECTED]> wrote:
>
>> Factor can tell you, try the following:
>> \ sum see
>
> So the shortest solution is:
>
> : sequence-sum ( seq -- sum ) sum ; inline
>
> Which is pretty much pointless.

hehe, yes...

The lesson of course being that the library functions are likely more
idiomatic than the code you're writing, and seeing their
implementation is easy.

If there's something in the library which does anything like what
you're working on, you may find clues on how to improve your code
there. Or, like in this case, a ready made word to just consume.

-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