diff --git a/smnp.collection.md b/smnp.collection.md index 805e342..af8a18d 100644 --- a/smnp.collection.md +++ b/smnp.collection.md @@ -67,6 +67,16 @@ println(x); # 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()` Checks if list doesn't contain any element.