Semigroup repeat (base package)
Wolfgang Jeltsch
wolfgang-it at jeltsch.info
Sun Sep 10 21:16:08 UTC 2017
Am Sonntag, den 10.09.2017, 10:39 +0200 schrieb Herbert Valerio Riedel:
> What you seem to be searching for looks more like what we know as
> `cycle :: [a] -> [a]`, and in fact there is its generalisation at
>
> http://hackage.haskell.org/package/base-4.10.0.0/docs/Data-Semigroup.html#v:cycle1
Why is this function called cycle1, not cycle? What does the “1” stand
for?
All the best,
Wolfgang
More information about the ghc-devs
mailing list