loading...

re: Daily Challenge #1 - String Peeler VIEW POST

FULL DISCUSSION
 

Purescript

flremove val =
let
value = toCharArray val
value1 = Array.length value
in
if (length val > 2)
then do
show $ fromCharArray $ Array.slice 1 (value1 -1) value
else ""

main = render =<< withConsole do
log $ flremove "string"

code of conduct - report abuse