]> gitweb.factorcode.org Git - factor.git/commit
sequences: fix from word
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 25 Aug 2022 22:02:47 +0000 (18:02 -0400)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 26 Feb 2023 23:11:03 +0000 (17:11 -0600)
commit223a2e494569e1712329539438fcd3a53fe7e225
tree149e96c33f0a8a13b91899419a09ba48cdf7ddd3
parente054712877e8586b373afe3295475a979accb737
sequences: fix from word

`from` can go last or second to last, exemplar goes last

the natural place for the `from` is at the bottom of the stack,
but requiring the callers to do this is more stack shuffling
at every call vs just shuffling it in the word. also you have to
know how deep to -rot the `from` so it's best to leave it to the
combinators
basis/combinators/smart/smart.factor
core/sequences/sequences.factor