Product Site

5.3.6.20. isEmpty

Returns .true if the array is empty. Returns .false otherwise.
Example 5.179. Array class — isEmpty method
a = .array~new
say a~isEmpty  -- says: 1
a[1] = "1"
say a~isEmpty  -- says: 0