We've talked about renaming the destructive versions of words to be more consistent with the non-destructive versions for quite some time, but until now, little has been done in this direction.
First off, I renamed change-each to map! and made map! return the sequence so the stack effect is consistent with the non-destructive map. change-each ( seq quot -- ) -> map! ( seq quot -- seq ) deep-change-each ( seq quot -- ) -> deep-map! ( seq quot -- seq ) A few more renamed words: delete ( elt seq -- ) -> remove! ( elt seq -- seq ) delete-nth ( n seq -- ) -> remove-nth! ( n seq -- seq ) filter-here ( seq quot -- ) -> filter! ( seq quot -- seq ) reverse-here ( seq -- ) -> reverse! ( seq -- seq ) A major change affecting the parser is that the 'parsed' word is now called 'suffix!'. A new word, append!, has also been added. suffix! ( seq elt -- seq ) append! ( seq1 seq2 -- seq1 ) This change allows a nice symmetry: over push -> suffix! over push-all -> append! I removed a couple of unused words: remove-all and substitute-here. Finally, I renamed some words that had abbreviations or otherwise obtuse names: remq -> remove-eq delq -> remove-eq! memq? -> member-eq? sorted-memq? -> sorted-member-eq? Hopefully things will be a lot more consistent for beginners now. Please let me know if I missed anything. Doug ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
