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: resources/doc/core.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,11 @@
209
209
"syntax": "filter {array} with {function}",
210
210
"description": "This is a generalized filter function that will extract wanted values from a JSON array using a function supplied in the script. In the following description, refer to the example above.%0a%0aThe filter function is called once for every element in the array, each with the element. This is always called ~m:a~ and is supplied as a named argument in the array variable. The function does whatever is needed in the context and places the result value (true or false) into a ~m:v~ argument.%0a%0aSee also ~l:sort~ and ~l:append~.",
211
211
"examples": " variable Items%0a variable A%0a variable V%0a %0a put empty into Items%0a append `fish` to Items%0a append `cabbage` to Items%0a append `sugar` to Items%0a append `beef` to Items%0a append `potatoes` to Items%0a filter Items with MyFilter%0a alert Items%0a exit%0a%0aMyFilter:%0a put arg `a` of Items into A%0a if the length of A is greater than 5%0a set V%0a else clear V%0a set arg `v` of Items to V%0a stop"
212
+
},
213
+
"CORE": {
214
+
"syntax": "Core variables and commands",
215
+
"description": "The ~m:core~ package contains all the basic stuff required of any programming language: variables, control structures, values and conditionals. With these it's possible to write and run simple command-line programs.\n\nThe other packages all provide features related to specific areas of programming, such as for browsers, storage, comms and special things like maps and text editors.",
0 commit comments