Why Download Tutorial Reference

Lists

listLength

Packagebios
Source filebios._util.mcy
NatureFunction
Typefun list a1 -> Int

Usage

listLength

Type
list a1 A list
Int The length of the list

Description

This function returns the number of elements in the list, or 0 if is empty.

> listLength 1:2:3:nil 
-> Int: 3 (0x3) 

On the same topic