2{-| A built-in representation for efficient string manipulation.
5@docs isEmpty, length, cons, uncons, reverse,
6 map, filter, foldl, foldr, any, all, repeat
9@docs split, join, words, lines
12@docs sub, left, right, dropLeft, dropRight
15@docs contains, startsWith, endsWith, indices, indexes
17# Conversion To Numbers
21Cosmetic operations such as padding with extra characters or trimming whitespace.
23@docs toUpper, toLower,
24 pad, padLeft, padRight,
25 trim, trimLeft, trimRight
34isEmpty = Native.String.isEmpty
38cons : Char -> String -> String
39cons = Native.String.cons
43uncons : String -> Maybe (Char, String)
44uncons = Native.String.uncons
49length = Native.String.length
53map : (Char -> Char) -> String -> String
54map = Native.String.map
58filter : (Char -> Bool) -> String -> String
59filter = Native.String.filter
63reverse : String -> String
64reverse = Native.String.reverse
68foldl : (Char -> b -> b) -> b -> String -> b
69foldl = Native.String.foldl
73foldr : (Char -> b -> b) -> b -> String -> b
74foldr = Native.String.foldr
78split : String -> String -> [String]
79split = Native.String.split
83join : String -> [String] -> String
84join = Native.String.join
88repeat : Int -> String -> String
89repeat = Native.String.repeat
91sub : Int -> Int -> String -> String
92sub = Native.String.sub
96left : Int -> String -> String
97left = Native.String.left
101right : Int -> String -> String
102right = Native.String.right
106dropLeft : Int -> String -> String
107dropLeft = Native.String.dropLeft
111dropRight : Int -> String -> String
112dropRight = Native.String.dropRight
116pad : Int -> Char -> String -> String
117pad = Native.String.pad
121padLeft : Int -> Char -> String -> String
122padLeft = Native.String.padLeft
126padRight : Int -> Char -> String -> String
127padRight = Native.String.padRight
131trim : String -> String
132trim = Native.String.trim
136trimLeft : String -> String
137trimLeft = Native.String.trimLeft
141trimRight : String -> String
142trimRight = Native.String.trimRight
146words : String -> [String]
147words = Native.String.words
151lines : String -> [String]
152lines = Native.String.lines
156toUpper : String -> String
157toUpper = Native.String.toUpper
161toLower : String -> String
162toLower = Native.String.toLower
166any : (Char -> Bool) -> String -> Bool
167any = Native.String.any
171all : (Char -> Bool) -> String -> Bool
172all = Native.String.all
176contains : String -> String -> Bool
177contains = Native.String.contains
181startsWith : String -> String -> Bool
182startsWith = Native.String.startsWith
186endsWith : String -> String -> Bool
187endsWith = Native.String.endsWith
191indices : String -> String -> [Int]
192indices = Native.String.indexes
196indexes : String -> String -> [Int]
197indexes = Native.String.indexes
201toInt : String -> Maybe Int
202toInt = Native.String.toInt
206toFloat : String -> Maybe Float
207toFloat = Native.String.toFloat
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list