Open timvermeulen opened 3 years ago
I think it's more natural to not pluralize of start
and end
, i.e. just have endOfCommonPrefix
, startOfCommonSuffix
I think it's more natural to not pluralize of
start
andend
, i.e. just haveendOfCommonPrefix
,startOfCommonSuffix
Fair point. I think I went with this because we already have endOfPrefix(while:)
and startOfSuffix(while:)
which both return a single index, but that's probably fine.
Don't endsOfCommonPrefix(with:)
and startssOfCommonSuffix(with:)
overlap with diverges(from:)
and converges(with:)
from #37 ?
Find the common prefix/suffix of two sequences or collections.
commonPrefix(with:)
commonSuffix(with:)
endOfCommonPrefix(with:)
: get a pair of indices that mark the end of the common prefix of two collectionsstartOfCommonSuffix(with:)
: get a pair of indices that mark the start of the common suffix of two collectionsChecklist