> 8) Using "fry" and some combinators can simplify words, for example:
>
> : update_arr2 ( arr2 pids -- ) [ dup pid_and_total_time swap
> string>number pick set-nth ] each drop ;
>
> Could become this:
>
> : update-arr2 ( arr2 pids -- )
> '[ [ pid-and-total-time ] [ string>number ] bi _ set-nth ] each ;
>
I think you made a mistake here and actually meant
: update-arr2 ( arr2 pids -- )
over '[ [ pid-and-total-time ] [ string>number ] bi _ set-nth ] each ;
Thanks for the rest of the tips :)
--
1110101111111110 - it's a way of life
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk