write_elements-methods function

Write a sequence of elements from an input source