Closed sebfisch closed 14 years ago
instead of returning [(Index,Int)] the matchings function (as well as the (=~) operator) should return a record of the form
[(Index,Int)]
matchings
(=~)
data Matching = Matching { matchingIndex :: Int, matchingLength :: Int }
to make more explicit what the first and second part of the pair mean.
The type synonym for Index (that fails to sufficiently clarify the meaning of the result of matchings) can be deleted after this change.
Index
710691a9da73275c0c5b6e3ab8c374b0445a7674
instead of returning
[(Index,Int)]
thematchings
function (as well as the(=~)
operator) should return a record of the formto make more explicit what the first and second part of the pair mean.
The type synonym for
Index
(that fails to sufficiently clarify the meaning of the result ofmatchings
) can be deleted after this change.