How to repeat a list of functions in haskell

Viewed 361

I want to have an infinite list of functions that cycles through some pattern. For example: [(+), (-), (+), (-), ...]

If I do something like

fmap repeat [(+), (-)]

then I get nested lists [[a -> a -> a]]. What's the best way to get a single infinite list of functions following a pattern like this?

1 Answers
Related