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: libscript/src/array.mlc
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ public foreign handler MCArrayEvalEmpty(out Value as array) as undefined binds t
38
38
public foreign handler MCArrayRepeatForEachElement(inout Iterator as optional pointer, out Iterand as any, in Container as array) as bool binds to "<builtin>"
39
39
public foreign handler MCArrayRepeatForEachKey(inout Iterator as optional pointer, out Iterand as string, in Container as array) as bool binds to "<builtin>"
40
40
41
+
public foreign handler MCArrayDeleteElementOfCaseless(inout Target as array, in Key as string) as undefined binds to "<builtin>"
42
+
41
43
--
42
44
43
45
/*
@@ -233,6 +235,33 @@ end syntax
233
235
234
236
--
235
237
238
+
/*
239
+
240
+
Summary: Deletes the element with key <Key> in <Target>.
241
+
Index: An expression which evaluates to a string.
242
+
Target: An expression which evaluates to an array.
243
+
244
+
Example:
245
+
variable tArray as array
246
+
put the empty array into tArray
247
+
put "value" into tArray["key"]
248
+
249
+
delete tArray["key"] -- tArray is the empty array
250
+
251
+
Description:
252
+
Either locates the element container with the given key for use as the target container of another operation, or evaluates the element with the given key as the source of another operation.
Copy file name to clipboardExpand all lines: libscript/src/byte.mlc
+138-1Lines changed: 138 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,18 @@ public foreign handler MCByteStoreByteRangeOf(in Value as data, in Start as inde
40
40
41
41
public foreign handler MCByteRepeatForEachByte(inout Iterator as optional pointer, out Iterand as data, in Container as data) as bool binds to "<builtin>"
42
42
43
+
public foreign handler MCByteFetchFirstByteOf(in Target as data, out Value as data) as undefined binds to "<builtin>"
44
+
public foreign handler MCByteStoreFirstByteOf(in Value as data, inout Target as data) as undefined binds to "<builtin>"
45
+
46
+
public foreign handler MCByteFetchLastByteOf(in Target as data, out Value as data) as undefined binds to "<builtin>"
47
+
public foreign handler MCByteStoreLastByteOf(in Value as data, inout Target as data) as undefined binds to "<builtin>"
48
+
49
+
public foreign handler MCByteExecDeleteByteOf(in Index as index, inout Target as data) as undefined binds to "<builtin>"
50
+
public foreign handler MCByteExecDeleteByteRangeOf(in Start as index, in Finish as index, inout Target as data) as undefined binds to "<builtin>"
51
+
52
+
public foreign handler MCByteExecDeleteLastByteOf(inout Target as data) as undefined binds to "<builtin>"
53
+
public foreign handler MCByteExecDeleteFirstByteOf(inout Target as data) as undefined binds to "<builtin>"
Use repeat for each to perform an operation on each byte of some data. On each iteration, the <Iterand> will contain the next char of the string being iterated over.
Copy file name to clipboardExpand all lines: libscript/src/char.mlc
+168Lines changed: 168 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,18 @@ public foreign handler MCCharEvalNewlineCharacter(out Value as string) as undefi
44
44
45
45
public foreign handler MCCharRepeatForEachChar(inout Iterator as optional pointer, out Iterand as string, in Container as string) as bool binds to "<builtin>"
46
46
47
+
public foreign handler MCCharFetchFirstCharOf(in Target as string, out Value as string) as undefined binds to "<builtin>"
48
+
public foreign handler MCCharStoreFirstCharOf(in Value as string, inout Target as string) as undefined binds to "<builtin>"
49
+
50
+
public foreign handler MCCharFetchLastCharOf(in Target as string, out Value as string) as undefined binds to "<builtin>"
51
+
public foreign handler MCCharStoreLastCharOf(in Value as string, inout Target as string) as undefined binds to "<builtin>"
52
+
53
+
public foreign handler MCCharExecDeleteCharOf(in Index as index, inout Target as string) as undefined binds to "<builtin>"
54
+
public foreign handler MCCharExecDeleteCharRangeOf(in Start as index, in Finish as index, inout Target as string) as undefined binds to "<builtin>"
55
+
56
+
public foreign handler MCCharExecDeleteLastCharOf(inout Target as string) as undefined binds to "<builtin>"
57
+
public foreign handler MCCharExecDeleteFirstCharOf(inout Target as string) as undefined binds to "<builtin>"
0 commit comments