How can I split a list into list of tuples/lists of specified length? splitBy :: Int -> [a] -> [[a]]
splitBy 2 "asdfgh" should return ["as", "df", "gh"]
splitEvery usually gets the nod for this job.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With