Split a character string based on change of character: Difference between revisions

Content added Content deleted
(→‎JS ES6: Updated primitives)
m (→‎JS ES6: lint)
Line 558: Line 558:
// stringChars :: String -> [Char]
// stringChars :: String -> [Char]
const stringChars = s => s.split('');
const stringChars = s => s.split('');



// TEST -------------------------------------------------------------------
// TEST -------------------------------------------------------------------
return show(
return show(
intercalate(", ",
intercalate(', ',
map(concat, group(stringChars("gHHH5YY++///\\")))
map(concat, group(stringChars('gHHH5YY++///\\')))
)
)
);
);