sequences: privacy please
parent
fe25bb097f
commit
924ccca457
|
@ -535,9 +535,13 @@ PRIVATE>
|
||||||
: last-index-from ( obj i seq -- n )
|
: last-index-from ( obj i seq -- n )
|
||||||
rot [ = ] curry find-last-from drop ;
|
rot [ = ] curry find-last-from drop ;
|
||||||
|
|
||||||
|
<PRIVATE
|
||||||
|
|
||||||
: (indices) ( elt i obj accum -- )
|
: (indices) ( elt i obj accum -- )
|
||||||
[ swap [ = ] dip ] dip [ push ] 2curry when ; inline
|
[ swap [ = ] dip ] dip [ push ] 2curry when ; inline
|
||||||
|
|
||||||
|
PRIVATE>
|
||||||
|
|
||||||
: indices ( obj seq -- indices )
|
: indices ( obj seq -- indices )
|
||||||
swap V{ } clone
|
swap V{ } clone
|
||||||
[ [ (indices) ] 2curry each-index ] keep ;
|
[ [ (indices) ] 2curry each-index ] keep ;
|
||||||
|
|
Loading…
Reference in New Issue