hybrid -> alphanum in stack effects
parent
2a234bec02
commit
2fc44d7027
|
@ -27,11 +27,11 @@ IN: sorting.human
|
||||||
! For comparing integers or sequences
|
! For comparing integers or sequences
|
||||||
TUPLE: alphanum obj ;
|
TUPLE: alphanum obj ;
|
||||||
|
|
||||||
: <alphanum> ( obj -- hybrid )
|
: <alphanum> ( obj -- alphanum )
|
||||||
alphanum new
|
alphanum new
|
||||||
swap >>obj ; inline
|
swap >>obj ; inline
|
||||||
|
|
||||||
: <alphanum-insensitive> ( obj -- hybrid )
|
: <alphanum-insensitive> ( obj -- alphanum )
|
||||||
alphanum new
|
alphanum new
|
||||||
swap dup string? [ w/collation-key ] when >>obj ; inline
|
swap dup string? [ w/collation-key ] when >>obj ; inline
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue