diff --git a/core/sequences/sequences.factor b/core/sequences/sequences.factor index 81e5401c4b..2ff6dbea54 100755 --- a/core/sequences/sequences.factor +++ b/core/sequences/sequences.factor @@ -268,18 +268,16 @@ INSTANCE: repetition immutable-sequence ERROR: integer-length-expected obj ; : check-length ( n -- n ) - #! Ricing. dup integer? [ integer-length-expected ] unless ; inline -: ((copy)) ( dst i src j n -- dst i src j n ) - dup -roll [ - + swap nth-unsafe -roll [ - + swap set-nth-unsafe - ] 3keep drop - ] 3keep ; inline +: ((copy)) ( dst i src j n -- ) + dup -roll + swap nth-unsafe -roll + swap set-nth-unsafe ; inline + +: 5bi ( a b c d e x y -- ) + bi-curry bi-curry bi-curry bi-curry bi ; inline : (copy) ( dst i src j n -- dst ) - dup 0 <= [ 2drop 2drop ] [ 1 - ((copy)) (copy) ] if ; + dup 0 <= [ 2drop 2drop ] [ 1 - [ ((copy)) ] [ (copy) ] 5bi ] if ; inline recursive : prepare-subseq ( from to seq -- dst i src j n )