You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: react/src/Components/Utils/Language.js
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ export default {
37
37
'every': 'This function tests whether all elements in the array pass a given test. It returns a boolean value.',
38
38
'extend': 'Adds a list or tuple with items to the end of a list, and returns the new length.',
39
39
'extend_unique': 'Adds a list or tuple with items to the end of a list, and returns the new length. Only items which do not have a duplicate in the list will be added.',
40
+
'fill': 'Fills a list with a given value.',
40
41
'filter': 'When this method is used on an list or tuple, a new list is returned with elements that pass the test.',
41
42
'find': 'This function returns the value of the first element in the list or tuple that satisfies the callback function. Otherwise nil is returned unless an alternative return value is specified.',
42
43
'find_index': 'This function returns the index of the first element in a list or tuple that satisfies the callback function. Otherwise nil is returned.',
@@ -48,6 +49,9 @@ export default {
48
49
'last':'Returns the last item in the list. A lookup_err() is raised when this function is used on an empty list unless a default value is given, in which case the given value will be returned.',
49
50
'len': 'Returns the length of a list or tuple.',
50
51
'map': 'Iterate over items in an list or tuple.',
52
+
'map_id': 'The function must be called on a list with things and returns a new list with the Ids of all the things.',
53
+
'map_type': 'The function must be called on a list with Ids (integer values) or things and returns a new list with the Ids and things converted to corresponding typed things.',
54
+
'map_wrap': 'The function must be called on a list with things and returns a new list with every thing wrapped according the given type.',
51
55
'pop': 'Removes the last element from a list and returns that element. This method changes the length of the list. The pop() method works on a list type array, but not on a tuple since tuples are immutable.',
52
56
'push': 'Adds new items to the end of an list, and returns the new length',
53
57
'reduce': 'Executes a given reducer closure on each element of the list, resulting in a single output value.',
@@ -81,6 +85,8 @@ export default {
81
85
'has': 'Determines if a set has a given thing.',
82
86
'len': 'Returns the length of a set.',
83
87
'map': 'Iterate over items in an set.',
88
+
'map_id': 'The function returns a list with the Ids of all the things in the set.',
89
+
'map_wrap': 'The function returns a list with every thing wrapped according the given type.',
84
90
'one': 'This function returns a thing from a set. The set must contain at least one thing, otherwise a lookup_err() is raised.',
85
91
'reduce': 'Executes a given reducer closure on every thing in the set, accumulating to a single return value.',
86
92
'remove': 'This function can be used to remove things from a set. If a closure is used, then all things that satisfy the test are removed from the set and returned as list. The order of the removed things is not guaranteed since the set itself is unordered. It is also possible to specify things as arguments. In this case a list is returned with all the things which are removed from the set, in the order that the arguments are used. Things which are not found in the set are ignored.',
@@ -130,6 +136,7 @@ export default {
130
136
'len': 'Returns the number of items in a thing.',
131
137
'map': 'Iterate over all properties on a thing.',
132
138
'remove': 'This function removes all properties from a thing that satisfies the callback function. The removed values will be returned in a new list. An empty list is returned if no values are removed.',
139
+
'ren': 'Rename a property on a thing.',
133
140
'restrict': 'Set or remove a value restriction on a thing. Function restriction() can be used to view the current restriction.',
134
141
'restriction': 'Returns the value restriction of a thing as type str or nil when the thing is not value restricted.',
135
142
'set': 'Creates a new property on a thing. If the property already existed then the old property will be overwritten. This function is equal to an assignment except that it can be used when the name of the property is dynamic.',
@@ -161,14 +168,14 @@ export default {
161
168
'del_type': 'Deletes an existing Type. It is not possible to delete a Type which is used by another type. You should first change or delete the other type before you are able to delete this type. See the example below.',
162
169
'enum': 'Get an enum member by value',
163
170
'enum_info': 'Return info about the enumerator type.',
171
+
'enum_map': 'Returns a thing with key/value pairs for all the members of a given enum.',
164
172
'enums_info': 'Return info about all the enumerator types in the current scope',
165
173
'err': 'Returns an error.',
166
174
'change_id': 'Returns the current change Id for the running query. The return value will be nil if the query does not require a change.',
167
175
'float': 'Returns a float from a specified value. If no value is given, the default float 0.0 is returned. If the specified value is of type raw, then the initial characters of the string are converted until a non-digit character is found. Initial white space is ignored and the number may start with an optional + or - sign. Type bool values are converted to 1.0 for true and 0.0 for false.',
168
176
'future': 'Returns a future. It is not possible to assign a future to a collection or add the future to a list. If you do, then nil will be assigned instead.',
169
177
'has_enum': 'Determine if the current scope has a given enumerator type',
170
178
'has_type': 'Determines if a Type exists in the current @collection scope.',
171
-
'if': 'Runs a block code based on the result of a given condition.',
172
179
'int': 'Returns an int from a specified value. If no value is given, the default integer 0 is returned. If the specified value was a float value, then the new integer value will be rounded towards zero. If the specified value is of type raw, then the initial characters of the string are converted until a non-digit character is found. Initial white space is ignored and the number may start with an optional + or - sign. Type bool values are converted to 1 for true and 0 for false.',
173
180
'is_array': 'This function determines whether the value passed to this function is an array type or not. The functions is_lis_t and is_tuple can be used to check if the array is mutable.',
174
181
'is_ascii': 'This function determines whether the value passed to this function is of type raw and contains only valid ascii characters.',
@@ -206,6 +213,7 @@ export default {
206
213
'new': 'Creates a new instance of a defined Type.',
207
214
'new_type': 'Creates a new Type. This function only creates a new type and does not allow you to specify any fields. With the set_type() function you can define the fields for the new type.',
208
215
'now': 'Return the time in seconds since the epoch as a floating point number. If you require the same time multiple times within a query, then call now() only once and save it to a variable, for example now = now();',
216
+
'nse': 'This function promises ThingsDB that your code has no-side-effects and therefore does not require a change.',
209
217
'raise': 'Raises an error.',
210
218
'rand': 'Returns pseudo-random random number between 0.0 and 1.0.',
211
219
'randint': 'Returns pseudo-random random integer number between a given range. The first argument specifies the start of the range and must have a value less than the second argument when specifies the end of the range. The start is inclusive and the end is exclusive, for example: randint(0, 2) will return either 0 or 1.',
@@ -215,7 +223,6 @@ export default {
215
223
'regex': 'This function can be used to create a regular expression from a given pattern with optional flags.',
216
224
'rename_enum': 'Rename an enum type.',
217
225
'rename_type': 'Rename a type.',
218
-
'return': 'The return function moves the argument to the output of the current query/closure call. If no return is specified, then the last value will be the value which is returned. A second argument can be given to the return function which can be used to specify how deep the result should be returned. The default deep value is set to 1, but any value between 0 and 127 is possible. A query can run different procedures and/or closures which might have change the deep value. In case you need to know the current deep value, the function deep() can be used. When no arguments are used the return value will be nil.',
219
226
'room': 'Returns a room from a specified value, that may be dynamic. If no value is given, a new room is returned.',
220
227
'set': 'Returns a new empty set. If an array is given, then all elements in the given array must be or type thing and a new set is returned based on the given things. Instead of an array, it is also possible to provide things comma separated.',
0 commit comments