{"id":191,"date":"2024-09-30T11:00:28","date_gmt":"2024-09-30T10:00:28","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=191"},"modified":"2024-09-30T11:00:28","modified_gmt":"2024-09-30T10:00:28","slug":"mwnci-extend-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-extend-function\/","title":{"rendered":"Mwnci extend() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>extend(<i><b>array<\/b><\/i>,<i><b>array<\/b><\/i>,&#8230; )<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>extend()<\/i> adds the specified list elements to the end of the current list.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>fruits = [\"apple\", \"banana\", \"cherry\"]\r\ncars = [\"Ford\", \"BMW\", \"Volvo\"]\r\nExtended=extend(fruits, cars)\r\nprintln(Extended)\r\n\r\n[apple, banana, cherry, Ford, BMW, Volvo]\r\n\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax extend(array,array,&#8230; ) Description The extend() adds the specified list elements to the end of the current list. Example fruits = [&#8220;apple&#8221;, &#8220;banana&#8221;, &#8220;cherry&#8221;] cars = [&#8220;Ford&#8221;, &#8220;BMW&#8221;, &#8220;Volvo&#8221;] Extended=extend(fruits, cars) println(Extended) [apple, banana, cherry, Ford, BMW, Volvo] }<\/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-191","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/191","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=191"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/191\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/191\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}