{"id":321,"date":"2024-10-04T12:58:04","date_gmt":"2024-10-04T11:58:04","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=321"},"modified":"2024-10-04T12:58:04","modified_gmt":"2024-10-04T11:58:04","slug":"mwnci-range-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-range-function\/","title":{"rendered":"Mwnci range() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>range(<i><b>start<\/b><\/i>, <i><b>stop<\/b><\/i>, <i><b>step<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>range()<\/i> function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and stops before a specified number.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>println(range(5))\r\n\r\n[0,1,2,3,4]\r\n\r\n\r\nprintln(range(2,6))\r\n\r\n[2,3,4,5]\r\n\r\n\r\nprintln(range(1,10,2))\r\n\r\n[1, 3, 5, 7, 9]\r\n\r\n\r\nrange(100,0,-2)\r\n\r\n[100, 98, 96, 94, 92, 90, 88, 86, 84, 82, 80, 78, 76, 74, 72, 70, 68, 66, 64, 62, 60, 58, 56, 54, 52, 50, 48, 46, 44, 42, 40, 38, 36, 34, 32, 30, 28, 26, 24, 22, 20, 18, 16, 14, 12, 10, 8, 6, 4, 2]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax range(start, stop, step) Description The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and stops before a specified number. Example println(range(5)) [0,1,2,3,4] println(range(2,6)) [2,3,4,5] println(range(1,10,2)) [1, 3, 5, 7, 9] range(100,0,-2) [100, 98, 96, 94, 92, 90, 88, 86, 84, 82, 80, 78, 76, &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-range-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci range() Function&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-321","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/321\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/321\/revisions\/322"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}