Product SiteDocumentation Site

5.3.6.21. isEmpty


>>-isEmpty-----------------------------------------------------><

Returns 1 (true) if the array is empty. Returns 0 (false) otherwise.

Example 5.146. Array class - isEmpty method

a = .array~new
say a~isEmpty  -- says: 1
a[1] = "1"
say a~isEmpty  -- says: 0