{"id":854,"date":"2024-12-10T04:08:07","date_gmt":"2024-12-10T04:08:07","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=854"},"modified":"2024-12-10T04:08:52","modified_gmt":"2024-12-10T04:08:52","slug":"mwnci-union-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-union-function\/","title":{"rendered":"Mwnci union() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>union<strong>(<em>array<\/em>, <em>array<\/em>,<em>[array],&#8230;<\/em> )<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>union()<\/i> function returns a set that contains all items from the original array, and all items from the specified array(s).<\/p>\n<p>If an item is present in more than one array, the result will contain only one appearance of this item.<\/p>\n<h2>Example<\/h2>\n<pre>\r\na=[1,2,3,4,4,4]\r\nb=[3,4,5,6]\r\nc=[7,8]\r\nprintln(union(a,b,c))\r\n\r\n\r\n[1, 2, 3, 4, 5, 6, 7, 8]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax union(array, array,[array],&#8230; ) Description The union() function returns a set that contains all items from the original array, and all items from the specified array(s). If an item is present in more than one array, the result will contain only one appearance of this item. Example a=[1,2,3,4,4,4] b=[3,4,5,6] c=[7,8] println(union(a,b,c)) [1, 2, 3, 4, &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-union-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci union() 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-854","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/854","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=854"}],"version-history":[{"count":2,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/854\/revisions"}],"predecessor-version":[{"id":856,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/854\/revisions\/856"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}