Skip to content

Instantly share code, notes, and snippets.

@bradclawsie bradclawsie/ss
Created Mar 19, 2014

What would you like to do?
substring a b = ss a b
ss (x:xs) (y:ys) = if (x == y) then ss xs ys else substring a ys
ss (x:xs) _ = False
ss _ _ = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.