comet

A language built for fun

This project is maintained by cometlang

up

Nil

inherits Iterable final

Nil is a special class with exactly one instance - it cannot be instantiated. It can be treated as a permanently empty iterable that will never have contents to iterate, but does not require checking for nil? before using in a foreach loop.

methods

iterable

Nil is an iterable that is permanently empty (because checking for nil? can be cumbersome)