Haskell ottiene elementi specifici di una stringa

Esempi di codice

0
0

haskell ottiene elementi specifici di una stringa

onlyParenthesis :: String -> String
onlyParenthesis [] = []
onlyParenthesis (x:xs)
                 | x /= '(' && x /= ')' && x /= '[' && x /= ']' && x /= '{' && x /= '}'= onlyParenthesis xs
                 | otherwise = x : onlyParenthesis xs
0
0

haskell ottenere specifici elementi di una Stringa

onlyParenthesis :: String -> String
onlyParenthesis [] = []
onlyParenthesis (x:xs)
                 | x /= '(' && x /= ')' && x /= '[' && x /= ']' && x /= '{' && x /= '}'= onlyParenthesis xs
                 | otherwise = x : onlyParenthesis xs

Pagine correlate

Pagine di esempio simili

In altre lingue

Questa pagina è in altre lingue

Русский
..................................................................................................................
English
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................