(NSFastEnumeration-each) ( ... object quot: ( ... elt -- ) state stackbuf count -- ... )


Vocabulary
cocoa.enumeration

Inputs
objectan object
quota quotation with stack effect ( ... elt -- )
statean object
stackbufan object
countan object


Outputs
None

Definition


:: (NSFastEnumeration-each)
( ... object quot: ( ... elt -- ) state stackbuf count -- ... )
object state stackbuf count
{ ulong { id SEL void* void* ulong } }
"countByEnumeratingWithState:objects:count:" send
:> items-count items-count 0 = [
state itemsPtr>>
[ items-count id <c-direct-array> ] [ stackbuf ] if*
:> items items-count <iota> [ items nth quot call ] each
object quot state stackbuf count
(NSFastEnumeration-each)
] unless ; inline recursive