A language built for fun
This project is maintained by cometlang
inherits Object
Functions as an abstract class in other languages, where it has only minimal functionality and relies on the concrete implementation to provide the basic methods.
contains?(value)
(abstract) returns true
if the value is contained in the iterableempty?()
(abstract) returns true
if the iterable has no itemsiterator()
(abstract) returns an Iteratormin()
returns the minimum value as determined by the <
operatormax()
returns the maximum value as determined by the <
operatorinherits Object
This is just an interface, but shows what should be returned by the iterator
method of Iterable
has_next?()
(abstract) returns true
if there is another item in the sequenceget_next()
(abstract) returns the next item in the sequence