Adding in optional filter function to cloneIterable