]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.runtime/scl/Prelude.md
Merge commit '53059ca'
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / Prelude.md
1 # Basic functions and operators
2
3 ## Booleans
4
5 ::data[Builtin/Boolean]
6 ::value[&&, ||, not, and, or, all, any, otherwise]
7
8 ## Comparison
9
10 ::class[Eq, Ord]
11 ::value[minimum, maximum, minimumBy, maximumBy, &<&]
12
13 ## Numeric functions
14
15 ::data[Builtin/Short, Builtin/Integer, Builtin/Long, Builtin/Float, Builtin/Double]
16 ::class[Additive, Ring, OrderedRing, Real, Integral]
17
18 # Data structures
19
20 ## Tuples
21
22 ::value[fst, snd, curry, uncurry, curry3, uncurry3]
23
24 ## Maybe
25
26 ::data[Builtin/Maybe]
27 ::value[fromJust, fromMaybe, execJust, filterJust, orElse, elemMaybe]
28
29 ## Either
30
31 ::data[Either]
32 ::value[mapEither]
33
34 ## Lists
35
36 ::class[Sequence]
37 ::value[!, getList]
38 ::value[elem]
39 ::value[filter, concatMap]
40 ::value[foldl, foldl1, foldr]
41 ::value[unfoldl, unfoldr]
42 ::value[zip, zipWith, unzip]
43 ::value[sort, sortBy, sortWith]
44 ::value[index, indexBy, indexWith]
45 ::value[unique, uniqueBy]
46 ::value[tail, reverse, range, \\, deleteAllBy, for, lookup, addList]
47 ::value[groupBy, intersect, findFirst]
48 ::value[singletonList]
49 ::value[group, groupWith]
50 ::value[mapFirst, mapMaybe]
51 ::value[build]
52 ::value[uniqueWith]
53
54 ## Strings
55
56 ::value[trim, splitString, indexOf, lastIndexOf, startsWith, endsWith, regionMatches, replaceString]
57 ::value[contains]
58 ::value[charAt]
59 ::value[isLetter, addChar, subChar]
60 ::value[string]
61 ::value[joinWithSeparator]
62 ::value[printWithSeparator]
63
64 # Higher order programming
65
66 ## Functions
67
68 ::value[const, $, ., id, flip, ignore]
69
70 ## Functors
71
72 ::class[Functor, FunctorE]
73
74 ## Monads
75
76 ::class[Monad]
77 ::value[>>]
78 ::class[FunctorM]
79 ::value[repeatForever]
80 ::class[MonadZero]
81 ::value[guard]
82 ::class[MonadPlus, MonadOr]
83 ::value[ignoreM]
84
85 # Side-effects 
86
87 ## Mutable references
88
89 ::data[Ref]
90 ::value[ref, getRef, :=]
91
92 ## Failure
93
94 ::value[Builtin/fail]
95
96 ## Control structures
97
98 ::value[while,forN]
99
100 ## Console
101
102 ::value[print, printString, printError, printErrorsAsNormalPrints, printingToFile]
103
104 ## Progress
105
106 ::value[didWork, checkInterrupted, isInterrupted]
107
108 ## UIDs
109
110 ::value[generateUID]
111
112 # Data
113
114 ## String conversion
115
116 ::class[Show]
117 ::value[<<]
118 ::data[Par]
119 ::class[Read]
120 ::value[toLowerCase, toUpperCase]
121
122 ## Other conversions
123
124 ::value[toDoubleArray, fromDoubleArray, arrayToList]
125
126 ## Hashing
127
128 ::class[Hashable]
129 ::value[hash]
130
131 ## Serialization
132
133 ::data[Builtin/Binding]
134 ::class[Builtin/Serializable]
135 ::value[Builtin/binding]
136 ::value[serialize, deserialize]
137
138 ## Typeable
139
140 ::data[Builtin/Type]
141 ::class[Builtin/Typeable]
142 ::value[Builtin/typeOf]
143
144 ## Dynamic
145
146 ::data[Dynamic]
147 ::value[toDynamic, fromDynamic]
148
149 # Undocumented entities
150
151 ::undocumented[]