Sha256: a7288c8cd351c55e369ff3c5faecbaff4144c033fd3427ea1f9a88b0112b4f1f
Contents?: true
Size: 186 Bytes
Versions: 396
Compression:
Stored size: 186 Bytes
Contents
module Triangle (rows) where rows :: Integral a => Int -> [[a]] rows = flip take triangle triangle :: Integral a => [[a]] triangle = iterate (\x -> zipWith (+) (0 : x) (x ++ [0])) [1]
Version data entries
396 entries across 396 versions & 1 rubygems