What's the best way to end up with a list composed of only the Just values,no Nothings?Michael==========================import Control.Monad.Stateimport Data.Maybe
type GeneratorState = State Inttick :: GeneratorState (Maybe Int)tick = do n <- getif ((n `mod` 7) == 0)thenreturn Nothingelse doput (n+1)return (Just n){-*Main> evalState (sequence $ replicate 9 tick) 1[Just 1,Just 2,Just 3,Just 4,Just 5,Just 6,Nothing,Nothing,Nothing]-}