For a school exercise, I need to create a series of characters with a given array of numbers. given [3,3,2,1]output "+===+===+==+=+". My approach would be to use mapand replicate"=" in the array, then intercalate"+" and, finally, concatan array for one line.
My solution is something like this (with constant knee errors)
printLine arr = map (replicate "=") arr >>> intercalate '*' >>> concat
What is the correct syntax? or shouldn't i use the card at all?
source
share