]> gitweb.factorcode.org Git - factor.git/commit
tensors.tensor-slice: make step-slice not extend slice.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 8 Jan 2020 17:05:06 +0000 (09:05 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 8 Jan 2020 17:05:06 +0000 (09:05 -0800)
commitd0fd75b20876e1ae6250817f0507d6e36fd9f658
treee1e61e722bd3a80680281e4d0ba7bb74a1383624
parent655262af9a134391191020534df9eaf718252b51
tensors.tensor-slice: make step-slice not extend slice.

This caused a small regression in compiler.tree.cleanup on this test:

{ t } [
    [ { array } declare 2 <groups> [ . . ] assoc-each ]
    \ nth-unsafe inlined?
] unit-test

I'm not entirely sure why it wasn't able to infer the slice that was created
for iteration stays a slice, and never becomes a step-slice, so perhaps there
is some improvement to be made in type inference here.
extra/tensors/tensor-slice/tensor-slice.factor