An adapter that creates an output channel backed by a list.
class appender[any value value type]
implements output[value type]
private list[value type] the list
private var boolean active
overload appender(list[value type] the list)
this • the list = the list
this • active = true
overload appender()
this(base list[value type] • new())
override void write(value type element)
assert active
the listappend(element)
override void write all(readonly list[value type] elements)
assert active
the listappend all(elements)
override void sync()
pass
override void close()
immutable list[value type] elements()
return the listelements