Lulu Arrays — Size

Introduction

If you have imported the lulu.Array class as

local Array = require 'lulu.Array'

then you have access to the following trivial size methods:

Array:size()
Returns the number of top-level items in self.

Array:is_empty(tbl)
Returns true if self is empty.

See Also

Array:first
Array:final
Array:at
Array:random

Back to top