replicate
https://hackage.haskell.org/package/base-4.21.0.0/docs/Prelude.html#v:replicate
replicate :: Int -> a -> [a]
code:haskell
>> replicate 0 True
[]
>> replicate (-1) True
[]
>> replicate 4 True
True,True,True,True
与えた数文だけリスト内に格納する
#Haskell