: struct-slot-values-quot ( class -- quot )
struct-slots
[ name>> reader-word 1quotation ] map
- '[ [ _ cleave ] output>array ] ;
+ '[ _ cleave>array ] ;
: define-struct-slot-values-method ( class -- )
[ \ struct-slot-values ] [ struct-slot-values-quot ] bi
[ [ ch>packed-length ] { } map-as start/end ]
[ [ unpack-table at ] { } map-as ] bi
[ '[ [ _ _ ] dip <slice> @ ] ] 3map
- '[ [ _ cleave ] output>array ] ;
+ '[ _ cleave>array ] ;
: unpack-native ( seq str -- seq )
'[ _ _ unpack ] with-native-endian ; inline
SYNTAX: slots{
"}" [ reader-word 1quotation ] map-tokens
- '[ [ _ cleave ] output>array ] append! ;
+ '[ _ cleave>array ] append! ;
: >>writer-word ( name -- word )
">>" prepend "accessors" lookup-word ;
} cleave ;
: cl_device_fp_config>flags ( ulong -- sequence )
- [ {
+ {
[ CL_FP_DENORM bitand 0 = [ f ] [ cl-denorm ] if ]
[ CL_FP_INF_NAN bitand 0 = [ f ] [ cl-inf-and-nan ] if ]
[ CL_FP_ROUND_TO_NEAREST bitand 0 = [ f ] [ cl-round-to-nearest ] if ]
[ CL_FP_ROUND_TO_ZERO bitand 0 = [ f ] [ cl-round-to-zero ] if ]
[ CL_FP_ROUND_TO_INF bitand 0 = [ f ] [ cl-round-to-inf ] if ]
[ CL_FP_FMA bitand 0 = [ f ] [ cl-fma ] if ]
- } cleave ] { } output>sequence sift ;
+ } cleave>array sift ;
: cl_device_mem_cache_type>cache-type ( uint -- cache-type )
{