Updated smnp.collection (markdown)
@@ -67,6 +67,16 @@ println(x);
|
|||||||
# C4:(1/4) :: D4:(1/4) :: 14 :: 3.14 :: true
|
# C4:(1/4) :: D4:(1/4) :: 14 :: 3.14 :: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## `list.sublist(beginIndex: int, endIndex: int)`
|
||||||
|
Returns a sublist.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```
|
||||||
|
x = ["a", "b", "c", "d", "e", "f", "g", "h"];
|
||||||
|
|
||||||
|
println(x.sublist(3, 6)); # [d, e, f]
|
||||||
|
```
|
||||||
|
|
||||||
## `list.isEmpty()`
|
## `list.isEmpty()`
|
||||||
Checks if list doesn't contain any element.
|
Checks if list doesn't contain any element.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user