fix some uses of "1 head*" to be "but-last".
parent
f9be1f3055
commit
e4e349741b
|
@ -9,7 +9,7 @@ M: sequence ppush swap suffix ;
|
||||||
|
|
||||||
GENERIC: ppop ( seq -- seq' )
|
GENERIC: ppop ( seq -- seq' )
|
||||||
|
|
||||||
M: sequence ppop 1 head* ;
|
M: sequence ppop but-last ;
|
||||||
|
|
||||||
GENERIC: new-nth ( val i seq -- seq' )
|
GENERIC: new-nth ( val i seq -- seq' )
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@ USING: kernel math math.vectors sequences ;
|
||||||
IN: math.vectors.homogeneous
|
IN: math.vectors.homogeneous
|
||||||
|
|
||||||
: (homogeneous-xyz) ( h -- xyz )
|
: (homogeneous-xyz) ( h -- xyz )
|
||||||
1 head* ; inline
|
but-last ; inline
|
||||||
|
|
||||||
: (homogeneous-w) ( h -- w )
|
: (homogeneous-w) ( h -- w )
|
||||||
last ; inline
|
last ; inline
|
||||||
|
|
||||||
|
|
|
@ -54,10 +54,10 @@ ERROR: cl-error err ;
|
||||||
[ size_t deref ] 2info ; inline
|
[ size_t deref ] 2info ; inline
|
||||||
|
|
||||||
: info-string ( handle name quot -- string )
|
: info-string ( handle name quot -- string )
|
||||||
[ ascii decode 1 head* ] info ; inline
|
[ ascii decode but-last ] info ; inline
|
||||||
|
|
||||||
: 2info-string ( handle name quot -- string )
|
: 2info-string ( handle name quot -- string )
|
||||||
[ ascii decode 1 head* ] 2info ; inline
|
[ ascii decode but-last ] 2info ; inline
|
||||||
|
|
||||||
: info-size_t-array ( handle name quot -- size_t-array )
|
: info-size_t-array ( handle name quot -- size_t-array )
|
||||||
[ [ length size_t heap-size / ] keep swap size_t <c-direct-array> ] info ; inline
|
[ [ length size_t heap-size / ] keep swap size_t <c-direct-array> ] info ; inline
|
||||||
|
|
Loading…
Reference in New Issue