Rather than have 2 methods that are quite similar, merge enum_parse into parse.
Enumerator could be returned when a as_nodes keyword argument is true.
This would mean getting rid of the parse behavior when a block is passed in, but that bit actually materializes all node instances first anyhow, which is not very effective or efficient.
Rather than have 2 methods that are quite similar, merge
enum_parse
intoparse
.Enumerator could be returned when a
as_nodes
keyword argument istrue
.This would mean getting rid of the
parse
behavior when a block is passed in, but that bit actually materializes all node instances first anyhow, which is not very effective or efficient.