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
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
This library consists of the operations on arrays included in the standard library of modular LiveCode.
2
+
This library consists of the operations on arrays included in the standard library of LiveCode Builder.
3
3
*/
4
4
5
5
module com.livecode.array
@@ -243,7 +243,7 @@ end syntax
243
243
244
244
/*
245
245
Summary: Repeat over the elements of an array.
246
-
Iterand: An expression of the form 'tVar in tArray'
246
+
Iterand: Any variable of appropriate type.
247
247
248
248
Example:
249
249
variable tArray as array
@@ -263,7 +263,9 @@ Example:
263
263
// tSum is 6
264
264
265
265
Description:
266
-
Use repeat for each element to iterate over the elements of an array in no particular order.
266
+
Use repeat for each element to iterate over the elements of an array in no particular order. On each iteration, the <Iterand> will contain the next element of the array being iterated over.
267
+
268
+
>*Note:* If <Iterand> is typed, then an error will be thrown if the array being iterated over contains any elements of a different type.
267
269
268
270
Tags: Arrays
269
271
*/
@@ -276,7 +278,7 @@ end syntax
276
278
277
279
/*
278
280
Summary: Repeat over the keys of an array.
279
-
Iterand: An expression of the form 'tVar in tArray'
281
+
Iterand: A string container.
280
282
281
283
Example:
282
284
variable tArray as array
@@ -297,7 +299,7 @@ Example:
297
299
put tString contains "abc" into tBool -- tBool is true
298
300
299
301
Description:
300
-
Use repeat for each key to iterate over the keys of an array in no particular order.
302
+
Use repeat for each key to iterate over the keys of an array in no particular order. On each iteration, the <Iterand> will contain the next key of the array being iterated over.
Copy file name to clipboardExpand all lines: libscript/src/byte.mlc
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
This library consists of the operations on bytes included in the standard library of modular LiveCode.
2
+
This library consists of the operations on bytes included in the standard library of LiveCode Builder.
3
3
*/
4
4
5
5
module com.livecode.byte
@@ -95,7 +95,7 @@ Summary: Finds the first or last occurrence of <Needle> before a spec
95
95
96
96
Needle: An expression which evaluates to binary data.
97
97
Target: An expression which evaluates to binary data.
98
-
After: An expression which evaluates to a valid integer index of Target.
98
+
Before: An expression which evaluates to a valid integer index of Target.
99
99
100
100
Returns: Returns the offset of <Needle> before index <Before> in <Target>.
101
101
@@ -237,10 +237,10 @@ end syntax
237
237
238
238
/*
239
239
Summary: Repeat over the bytes of some data
240
-
Iterand: An expression of the form 'tVar in tData'
240
+
Iterand: A binary data container.
241
241
242
242
Description:
243
-
Use repeat for each to perform an operation on each byte of some data.
243
+
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.
Needle: An expression which evaluates to a string.
238
-
Target: An expression which evaluates to a string.
238
+
Source: An expression which evaluates to a string.
239
239
240
240
Returns: Returns true if <Source> contains <Needle>.
241
241
@@ -341,7 +341,7 @@ end syntax
341
341
342
342
/*
343
343
Summary: Repeat over the chars of a string
344
-
Iterand: An expression of the form 'tChar in tString'
344
+
Iterand: A string container.
345
345
346
346
Example:
347
347
variable tString as string
@@ -357,7 +357,7 @@ Example:
357
357
// tReversed is "desserts"
358
358
359
359
Description:
360
-
Use repeat for each to perform an operation on each char of a string.
360
+
Use repeat for each to perform an operation on each char of a string. 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/list.mlc
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
This library consists of the operations on lists included in the standard library of modular LiveCode.
2
+
This library consists of the operations on lists included in the standard library of LiveCode Builder.
3
3
*/
4
4
5
5
module com.livecode.list
@@ -673,7 +673,7 @@ end syntax
673
673
674
674
/*
675
675
Summary: Repeat over the elements of a list
676
-
Iterand: An expression of the form 'tVar in tList'
676
+
Iterand: Any variable of appropriate type.
677
677
678
678
Example:
679
679
variable tList as list
@@ -690,7 +690,8 @@ Example:
690
690
// tRelist is the same as tList
691
691
692
692
Description:
693
-
Use repeat for each to perform an operation on each element of a list.
693
+
Use repeat for each to perform an operation on each element of a list. On each iteration, the Iterand will contain the next element of the list being iterated over.
694
+
>*Note:* If <Iterand> is typed, then an error will be thrown if the list being iterated over contains any elements of a different type.
0 commit comments