New lazydom version
Here's the code. Key new features vs the original:
- element[:] returns all children of all elements in the list.
- element[f] will apply function f to all elements in the list, and act either as a filter or as a map or even sequence concatenation, depending on the return type.
- all DOM attributes and methods may now be used.
- / and // operators may now be used as "evil" alternatives to indexing. This was just one of many valuable suggestions from Gary Burd that were incorporated into this version.