I want a function that can turn an array into a string while inputting some new lines in there too.
Essentially let's say I have the list: [1234567890] I would like to pass that in with an integer and return that list as a String that is formatted like such:
(if the Int was 5, it would be)
"12345"
"67890"
I'm thinking I can do something like:
split :: Int -> [char] -> String
split n (x:xs) = split (take n-1 (x:xs)) -- I'm trying to make this recursive
I'm also going to assume that whatever length the array is will be divisible by the Int I pass in.
Charis alreadyString(that's howStringis literally defined), but your output example shows two strings, not one..... -> (String, String). If you want to return many, use... -> [String].