Tail recursive verison of treeToList (avoiding ++)
Merge branch 'master' into TailRecursiveTreeToList
Merge pull request #925 from JanBessai/TailRecursiveTreeToList

Tail recursive treeToList