Iterator.single


Description:

[ CCode ( has_construct_function = false ) ]
public Iterator.single (Type type, Value object)

This Iterator is a convenient iterator for the common case where a Iterator needs to be returned but only a single object has to be considered.

This happens often for the PadIterIntLinkFunction.

Parameters:

type

Type of the passed object

object

object that this iterator should return

Returns:

the new Iterator for object.