2{-| A built-in representation of String for effecient string manipulation.
5@docs isEmpty, length, cons, uncons, reverse,
6 map, filter, foldl, foldr, any, all, repeat
9@docs split, join, words, unwords, lines, unlines
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
35isEmpty = Native.String.isEmpty
39cons : Char -> String -> String
40cons = Native.String.cons
44uncons : String -> Maybe (Char, String)
45uncons = Native.String.uncons
50length = Native.String.length
54map : (Char -> Char) -> String -> String
55map = Native.String.map
59filter : (Char -> Bool) -> String -> String
60filter = Native.String.filter
64reverse : String -> String
65reverse = Native.String.reverse
69foldl : (Char -> b -> b) -> b -> String -> b
70foldl = Native.String.foldl
74foldr : (Char -> b -> b) -> b -> String -> b
75foldr = Native.String.foldr
79split : String -> String -> [String]
80split = Native.String.split
84join : String -> [String] -> String
85join = Native.String.join
89repeat : Int -> String -> String
90repeat = Native.String.repeat
92sub : Int -> Int -> String -> String
93sub = Native.String.sub
97left : Int -> String -> String
98left = Native.String.left
102right : Int -> String -> String
103right = Native.String.right
107dropLeft : Int -> String -> String
108dropLeft = Native.String.dropLeft
112dropRight : Int -> String -> String
113dropRight = Native.String.dropRight
117pad : Int -> Char -> String -> String
118pad = Native.String.pad
122padLeft : Int -> Char -> String -> String
123padLeft = Native.String.padLeft
127padRight : Int -> Char -> String -> String
128padRight = Native.String.padRight
132trim : String -> String
133trim = Native.String.trim
137trimLeft : String -> String
138trimLeft = Native.String.trimLeft
142trimRight : String -> String
143trimRight = Native.String.trimRight
147words : String -> [String]
148words = Native.String.words
152unwords : [String] -> String
153unwords = Native.String.unwords
157lines : String -> [String]
158lines = Native.String.lines
162unlines : [String] -> String
163unlines = Native.String.unlines
167toUpper : String -> String
168toUpper = Native.String.toUpper
172toLower : String -> String
173toLower = Native.String.toLower
177any : (Char -> Bool) -> String -> Bool
178any = Native.String.any
182all : (Char -> Bool) -> String -> Bool
183all = Native.String.all
187contains : String -> String -> Bool
188contains = Native.String.contains
192startsWith : String -> String -> Bool
193startsWith = Native.String.startsWith
197endsWith : String -> String -> Bool
198endsWith = Native.String.endsWith
202indices : String -> String -> [Int]
203indices = Native.String.indexes
207indexes : String -> String -> [Int]
208indexes = Native.String.indexes
212toInt : String -> Maybe Int
213toInt = Native.String.toInt
217toFloat : String -> Maybe Float
218toFloat = 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