]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences: inline `element/index` and `index/element`
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 11 Oct 2022 14:12:09 +0000 (09:12 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 11 Oct 2022 14:12:09 +0000 (09:12 -0500)
core/sequences/sequences.factor

index aaebd6170818b11a8b257451856389a6a295fef5..f9aba3804b710157b30c3690c94137f783971347 100644 (file)
@@ -454,10 +454,10 @@ PRIVATE>
     [ setup-3each ] dip compose ; inline
 
 : element/index ( i/f seq -- elt/f i/f )
-    '[ [ _ nth ] [ f ] if* ] keep ;
+    '[ [ _ nth ] [ f ] if* ] keep ; inline
 
 : index/element ( i/f seq -- i/f elt/f )
-    dupd '[ _ nth ] [ f ] if* ;
+    dupd '[ _ nth ] [ f ] if* ; inline
 
 : (accumulate) ( seq identity quot -- identity seq quot' )
     swapd [ keepd ] curry ; inline