[ [ ... ] bi@ <=> ] sort => [ ... ] sort-with
parent
2a60451107
commit
a2fe9f1952
|
@ -365,7 +365,7 @@ M: character-type (<fortran-result>)
|
|||
] bi* ;
|
||||
|
||||
: (fortran-in-shuffle) ( ret par -- seq )
|
||||
[ [ second ] bi@ <=> ] sort append ;
|
||||
[ second ] sort-with append ;
|
||||
|
||||
: (fortran-out-shuffle) ( ret par -- seq )
|
||||
append ;
|
||||
|
|
|
@ -422,7 +422,7 @@ SYNTAX: UNIFORM-TUPLE:
|
|||
[ [ length ] [ >int-array ] bi glDrawBuffers ] if ;
|
||||
|
||||
: bind-named-output-attachments ( program-instance framebuffer attachments -- )
|
||||
rot '[ [ first _ swap output-index ] bi@ <=> ] sort [ second ] map
|
||||
rot '[ first _ swap output-index ] sort-with [ second ] map
|
||||
bind-unnamed-output-attachments ;
|
||||
|
||||
: bind-output-attachments ( program-instance framebuffer attachments -- )
|
||||
|
|
Loading…
Reference in New Issue