{"id":9913,"date":"2024-11-27T09:50:53","date_gmt":"2024-11-27T08:50:53","guid":{"rendered":"https:\/\/oopm.org\/?page_id=9913"},"modified":"2024-12-20T14:27:42","modified_gmt":"2024-12-20T13:27:42","slug":"4-2-class-orderedlist","status":"publish","type":"page","link":"https:\/\/oopm.org\/?page_id=9913","title":{"rendered":"4.3 Class OrderedList"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-page pdfprnt-top-right\"><a href=\"https:\/\/oopm.org\/index.php?rest_route=wpv2pages9913&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/oopm.org\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/oopm.org\/index.php?rest_route=wpv2pages9913&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/oopm.org\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>\n<p class=\"wp-block-paragraph\">In this section, we introduce class <code>Orderedlist<\/code>, which is used in some of the examples in subsequent sections of this book. This section is intended as a <em>reference section<\/em> and may be skipped during a first reading.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Class <code>OrderedList<\/code> has the same attributes as class <code>Set<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>class<\/strong> OrderedList(<strong>class<\/strong> ElmType:&lt; Object): \n   insert(e: <strong>ref<\/strong> ElmType): :::\n   has(e: <strong>ref<\/strong> ElmType): :::\n   remove(e: <strong>ref<\/strong> ElmType): :::\n   :::<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A set is characterised by only having one occurrence of a given element. A <code>Set<\/code> object does thus only have at most one occurrence of a givne element. An <code>OrderedList<\/code> on the other hand may have several occurrences of the same element. The elements are inserted in the order why are inserted into an <code>OrderedList<\/code> object.<\/p>\n<div style=\"display:flex; gap:10px;justify-content:center\" class=\"wps-pgfw-pdf-generate-icon__wrapper-frontend\">\n\t\t<a  href=\"https:\/\/oopm.org?action=genpdf&amp;id=9913\" class=\"pgfw-single-pdf-download-button\" ><img src=\"https:\/\/oopm.org\/wp-content\/plugins\/pdf-generator-for-wp\/admin\/src\/images\/PDF_Tray.svg\" title=\"Generate PDF\" style=\"width:auto; height:45px;\"><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>In this section, we introduce class Orderedlist, which is used in some of the examples in subsequent sections of this book. This section is intended as a reference section and may be skipped during a first reading. Class OrderedList has the same attributes as class Set: A set is characterised by only having one occurrence [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":469,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9913","page","type-page","status-publish","hentry"],"mb":[],"mfb_rest_fields":["title","gutenberg_elementor_mode"],"_links":{"self":[{"href":"https:\/\/oopm.org\/index.php?rest_route=\/wp\/v2\/pages\/9913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oopm.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oopm.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oopm.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oopm.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9913"}],"version-history":[{"count":7,"href":"https:\/\/oopm.org\/index.php?rest_route=\/wp\/v2\/pages\/9913\/revisions"}],"predecessor-version":[{"id":10735,"href":"https:\/\/oopm.org\/index.php?rest_route=\/wp\/v2\/pages\/9913\/revisions\/10735"}],"up":[{"embeddable":true,"href":"https:\/\/oopm.org\/index.php?rest_route=\/wp\/v2\/pages\/469"}],"wp:attachment":[{"href":"https:\/\/oopm.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}