Re: TreeNode.exists?

2021-08-11 Thread Sean Owen
ed > > I think that this and the other places beg (scream?) for TreeNode.exists > that could do the simplest thing possible: > > find(f).isDefined > > or even > > collectFirst(...).isDefined > > It'd surely help a lot for people like myself reading the

TreeNode.exists?

2021-08-11 Thread Jacek Laskowski
cream?) for TreeNode.exists that could do the simplest thing possible: find(f).isDefined or even collectFirst(...).isDefined It'd surely help a lot for people like myself reading the code. WDYT? [1] https://github.com/apache/spark/pull/