Answers for "haskell get specific elements of a String"

0

haskell get specific elements of a String

onlyParenthesis :: String -> String
onlyParenthesis [] = []
onlyParenthesis (x:xs)
                 | x /= '(' && x /= ')' && x /= '[' && x /= ']' && x /= '{' && x /= '}'= onlyParenthesis xs
                 | otherwise = x : onlyParenthesis xs
Posted by: Guest on January-09-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language