Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
tail → drop 1
Suppose there are no primes in [m..n]:
find (\(a, b) -> b-a == g) . uncurry zip . (id &&& drop 1) . filter isPrime $ [m..n]
→find (\(a, b) -> b-a == g) . uncurry zip . (id &&& drop 1) $ []
→find (\(a, b) -> b-a == g) . uncurry zip $ ([], [])
→find (\(a, b) -> b-a == g) []
→Nothing
Which is exactly what supposed to happen:
What will happen if there is no prime in [m..n]?