{"id":307,"date":"2024-10-04T10:18:48","date_gmt":"2024-10-04T09:18:48","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=307"},"modified":"2024-10-04T10:18:48","modified_gmt":"2024-10-04T09:18:48","slug":"mwnci-pop-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-pop-function\/","title":{"rendered":"Mwnci pop() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>pop(<i><b>array<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>pop()<\/i> function removes the element from the end of the array and returns that value<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>a=[1,2,3,4,5]\r\nb=pop(a)\r\nprintln(\"a=\",a)\r\nprintln(\"b=\", b)\r\n\r\n\r\na=[1, 2, 3, 4]\r\nb=5\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax pop(array) Description The pop() function removes the element from the end of the array and returns that value Example a=[1,2,3,4,5] b=pop(a) println(&#8220;a=&#8221;,a) println(&#8220;b=&#8221;, b) a=[1, 2, 3, 4] b=5<\/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-307","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/307","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=307"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/307\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/307\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}