fill

Creates a finite KoneSequence of the given size filled with the specified element.

Return

A new KoneSequence instance.

Parameters

size

The number of elements in the sequence.

element

The element to fill the sequence with.

Type Parameters

Element

The type of elements.


Creates an infinite KoneSequence filled with the specified element.

Return

An infinite KoneSequence instance.

Parameters

element

The element to fill the sequence with.

Type Parameters

Element

The type of elements.