singletonIterator

inline fun <T> T.singletonIterator(): Iterator<T>(source)

Returns an iterator containing only this.

The Iterable equivalent of this method is Collections.singleton.

See also