Skip to content

Commit

Permalink
sequences.prefixed: swap order of <prefixed> arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Dec 7, 2024
1 parent a5c9ae6 commit 1902bab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extra/sequences/prefixed/prefixed-tests.factor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
USING: arrays sequences sequences.prefixed tools.test ;

{ { 1 } } [ 1 f <prefixed> >array ] unit-test
{ { 1 2 3 4 } } [ 1 { 2 3 4 } <prefixed> >array ] unit-test
{ { 1 } } [ f 1 <prefixed> >array ] unit-test
{ { 1 2 3 4 } } [ { 2 3 4 } 1 <prefixed> >array ] unit-test
4 changes: 2 additions & 2 deletions extra/sequences/prefixed/prefixed.factor
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ USING: accessors kernel math math.order sequences sequences.private ;
IN: sequences.prefixed

TUPLE: prefixed
{ elt object read-only }
{ seq sequence read-only } ;
{ seq sequence read-only }
{ elt object read-only } ;

C: <prefixed> prefixed

Expand Down

0 comments on commit 1902bab

Please sign in to comment.