]> gitweb.factorcode.org Git - factor.git/commitdiff
format-using: inline a word
authorAlexander Ilin <alex.ilin@protonmail.com>
Sun, 13 Aug 2023 11:50:29 +0000 (13:50 +0200)
committerAlexander Ilin <alex.ilin@protonmail.com>
Sun, 13 Aug 2023 12:08:31 +0000 (14:08 +0200)
Replace "bi@ =" with "same?" as suggested by lint.

extra/format-using/format-using.factor

index b7af761f950e215394d7969ef2b468d2ee0c1862..8bbdec87e59f3add0abd05343cbc7f94567a076f 100644 (file)
@@ -12,11 +12,8 @@ IN: format-using
 : subsystem ( str -- str' )
     dup [ CHAR: . = ] find [ head ] [ drop ] if ;
 
-: subsystem= ( str1 str2 -- ? )
-    [ subsystem ] bi@ = ;
-
 : subsystem-clusters ( seq -- seq' )
-    [ subsystem= ] monotonic-split ;
+    [ [ subsystem ] same? ] monotonic-split ;
 
 : joined-length ( seq -- n )
     [ length ] keep [ length ] map-sum + ;