{"id":992,"date":"2024-12-16T12:12:50","date_gmt":"2024-12-16T12:12:50","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=992"},"modified":"2024-12-16T14:42:01","modified_gmt":"2024-12-16T14:42:01","slug":"mwnci-rotl-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-rotl-function\/","title":{"rendered":"Mwnci rotl() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>rotl<strong>(<em>string|array<\/em>, <em>[integer]<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>rotl()<\/i> function will rotate the items in a string or array 1 element to the left if no integer amount is given, or by the amount stated by the given integer.<\/p>\n<h2>Example<\/h2>\n<pre>\r\na=[1,2,3,4,5,6]\r\na=rotl(a)\r\nprintln(a)\r\na=rotl(a, 3)\r\nprintln(a)\r\n\r\na=\"This is a string\"\r\na=rotl(a)\r\nprintln(a)\r\na=rotl(a, 6)\r\nprintln(a)\r\n\r\n\r\n[2, 3, 4, 5, 6, 1]\r\n[5, 6, 1, 2, 3, 4]\r\nhis is a stringT\r\n a stringThis is\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax rotl(string|array, [integer]) Description The rotl() function will rotate the items in a string or array 1 element to the left if no integer amount is given, or by the amount stated by the given integer. Example a=[1,2,3,4,5,6] a=rotl(a) println(a) a=rotl(a, 3) println(a) a=&#8221;This is a string&#8221; a=rotl(a) println(a) a=rotl(a, 6) println(a) [2, 3, 4, &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-rotl-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci rotl() 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-992","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/992","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=992"}],"version-history":[{"count":3,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/992\/revisions"}],"predecessor-version":[{"id":996,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/992\/revisions\/996"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}