runeflobakk / motif

A Java library helping you to compose behavior from smaller parts.
http://runeflobakk.github.io/motif
6 stars 0 forks source link

Need a more generic term for Optional.split(..) #45

Closed runeflobakk closed 10 years ago

runeflobakk commented 10 years ago

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:

runeflobakk commented 10 years ago

Tried some other method names. Did not feel like an improvement, so .split(..) is left as-is for now.