Count items in a list

Jsagala's icon

Hi, I can't seem to find out how to count items in a list. I'd like to send a message to an object and have it output the number of items in the list.
I'm trying to avoid externals in this patch.

3 14001 245 should output 3
6 89 22 45 3 55 66 should output 7

Seems like this should be easy...probably n mode or switch on the zl object but I can't find it.
Thanks in advance.

antwan's icon

hi there,

try zl len

Tim Lloyd's icon

[zl len ]

It's documented in the xl help file.

Jsagala's icon

Exactly what I needed, thanks very much!