Sha256: 3a8c4362721969fadd66f70ee5521bd52f1062a1e0da8257952dd5ce552d7fe2
Contents?: true
Size: 255 Bytes
Versions: 351
Compression:
Stored size: 255 Bytes
Contents
module Series (slices) where import Data.Char (digitToInt) import Data.List (tails) slices :: Int -> String -> [[Int]] slices 0 _ = [[]] slices n s = map (take n) . take (length s - n + 1) . tails $ numberSeries where numberSeries = map digitToInt s
Version data entries
351 entries across 351 versions & 1 rubygems