Refactored the dist-node-elems[] function. Again, more functional. No need to explictly loop through the list. We filter the list and then just use "map" to appy our "parse-elem[]" function to each element.