From 8493395629faffc6e82a28027519636f8e7f7209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Przemys=C5=82aw=20Pluta?= Date: Thu, 26 Mar 2020 19:49:37 +0100 Subject: [PATCH] Updated smnp.collection (markdown) --- smnp.collection.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.