I came across this replicate function,
replicate' n x = [x|y <- [1..n]]
Why is y there? y is being assigned values from 1 to n despite not being featured in the output expression.
_there. Having ayvariable that's unused like that is just poor form.fmap (const x) [1..n]orx <$ [1..n]