My second post
Did this change?
This is what I’m going to write about
Looking good. The main points are
- Point 1
- Ooops forgot this one
- Another point
- Point 3
- Point 4
-- split takes a list and two indices
-- returns a list of elements between the two indices
split :: (Ord a, Num a, Enum a) => [t] -> a -> a -> [t]
split [] _ _ = []
split xs s e
| s > e = []
| otherwise = [ b | (a,b) <- (zip [1..] xs), a >= s, a <= e]
Written on July 5, 2017