Module
Data.String.Yarn
- Package
- purescript-yarn
- Repository
- thimoteus/purescript-yarn
#toChars Source
toChars :: forall f. Unfoldable f => String -> f Char
Turn a String
into an Unfoldable
container of Char
s. For example:
toChars "Foo" == ['F','o','o'] :: Array Char
#substitute Source
substitute :: Pattern -> Replacement -> String -> String
Like replace
but acts globally
#substituteMany Source
substituteMany :: forall f. Foldable f => f (Tuple Pattern Replacement) -> String -> String
Replace many substitutions given some association list
#capitalize Source
capitalize :: String -> String
Capitalize the first Char
in a String
#rightpadBy Source
rightpadBy :: Int -> String -> String
Append a given number of spaces to the right of a String
#charTraverse Source
charTraverse :: forall m. Applicative m => (Char -> m Char) -> String -> m String
Transform a Kleisli arrow on Char
s to one on String
s
- Modules
- Data.
String. Yarn