replace-megaparsec
replace-megaparsec copied to clipboard
utility functions
trafficstars
doesMatchExist = case (sepCap sep input) of
[Left _] -> False
otherwise -> True
Does laziness short-circuit doesMatchExist correctly?
firstMatch = find isRight $ sepCap sep input
Does laziness short-ciruit firstMatch correctly?