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