The method-name "split" on Optional<V> and A<V> is somewhat awkward since it hints about how a value is transformed into several values. The passed Fn should describe how it will be done, e.g. splittingOn(','). Using this as an exsample, possible names can be:
The method-name "split" on
Optional<V>
andA<V>
is somewhat awkward since it hints about how a value is transformed into several values. The passedFn
should describe how it will be done, e.g.splittingOn(',')
. Using this as an exsample, possible names can be:the("a,b,c").explode(splittingOn(','))
the("a,b,c").toElements(splittingOn(','))
the("a,b,c").dissect(splittingOn(','))