RosettaCodeData/Task/Fractran/Haskell/fractran-4.hs

3 lines
58 B
Haskell

import Data.Maybe (mapMaybe)
import Data.List (elemIndex)