diff --git a/assets/highlight.css b/assets/highlight.css new file mode 100644 index 0000000..85cd183 --- /dev/null +++ b/assets/highlight.css @@ -0,0 +1,78 @@ +:root { + --light-hl-0: #0000FF; + --dark-hl-0: #569CD6; + --light-hl-1: #000000; + --dark-hl-1: #D4D4D4; + --light-hl-2: #0070C1; + --dark-hl-2: #4FC1FF; + --light-hl-3: #795E26; + --dark-hl-3: #DCDCAA; + --light-hl-4: #A31515; + --dark-hl-4: #CE9178; + --light-hl-5: #008000; + --dark-hl-5: #6A9955; + --light-hl-6: #001080; + --dark-hl-6: #9CDCFE; + --light-hl-7: #098658; + --dark-hl-7: #B5CEA8; + --light-code-background: #FFFFFF; + --dark-code-background: #1E1E1E; +} + +@media (prefers-color-scheme: light) { :root { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --code-background: var(--light-code-background); +} } + +@media (prefers-color-scheme: dark) { :root { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --code-background: var(--dark-code-background); +} } + +:root[data-theme='light'] { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --code-background: var(--light-code-background); +} + +:root[data-theme='dark'] { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --code-background: var(--dark-code-background); +} + +.hl-0 { color: var(--hl-0); } +.hl-1 { color: var(--hl-1); } +.hl-2 { color: var(--hl-2); } +.hl-3 { color: var(--hl-3); } +.hl-4 { color: var(--hl-4); } +.hl-5 { color: var(--hl-5); } +.hl-6 { color: var(--hl-6); } +.hl-7 { color: var(--hl-7); } +pre, code { background: var(--code-background); } diff --git a/assets/main.js b/assets/main.js new file mode 100644 index 0000000..4c8fa61 --- /dev/null +++ b/assets/main.js @@ -0,0 +1,58 @@ +"use strict"; +"use strict";(()=>{var Se=Object.create;var re=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Pe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ie=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Te(e))!Qe.call(t,i)&&i!==r&&re(t,i,{get:()=>e[i],enumerable:!(n=we(e,i))||n.enumerable});return t};var Ce=(t,e,r)=>(r=t!=null?Se(ke(t)):{},Ie(e||!t||!t.__esModule?re(r,"default",{value:t,enumerable:!0}):r,t));var ae=Pe((se,oe)=>{(function(){var t=function(e){var r=new t.Builder;return r.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),r.searchPipeline.add(t.stemmer),e.call(r,r),r.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var r=Object.create(null),n=Object.keys(e),i=0;i0){var d=t.utils.clone(r)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(n.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){r in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var r=e.label&&e.label in this.registeredFunctions;r||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(n){var i=t.Pipeline.registeredFunctions[n];if(i)r.add(i);else throw new Error("Cannot load unregistered function: "+n)}),r},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(r){t.Pipeline.warnIfFunctionNotRegistered(r),this._stack.push(r)},this)},t.Pipeline.prototype.after=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");n=n+1,this._stack.splice(n,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);r!=-1&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,n=0;n1&&(oe&&(n=s),o!=e);)i=n-r,s=r+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(r+=n[u+1]*i[d+1],u+=2,d+=2);return r},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),r=1,n=0;r0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),y;m in s.node.edges?y=s.node.edges[m]:(y=new t.TokenSet,s.node.edges[m]=y),s.str.length==1&&(y.final=!0),i.push({node:y,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return n},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,n=r,i=0,s=e.length;i=e;r--){var n=this.uncheckedNodes[r],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(r){var n=new t.QueryParser(e,r);n.parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=r||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,r;do e=this.next(),r=e.charCodeAt(0);while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var r=e.next();if(r==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(r.charCodeAt(0)==92){e.escapeCharacter();continue}if(r==":")return t.QueryLexer.lexField;if(r=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(r=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(r=="+"&&e.width()===1||r=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,r){this.lexer=new t.QueryLexer(e),this.query=r,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(r!=null)switch(r.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(n+=" with value '"+r.str+"'"),new t.QueryParseError(n,r.start,r.end)}},t.QueryParser.parsePresence=function(e){var r=e.consumeLexeme();if(r!=null){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+r.str+"'";throw new t.QueryParseError(n,r.start,r.end)}var i=e.peekLexeme();if(i==null){var n="expecting term or field, found nothing";throw new t.QueryParseError(n,r.start,r.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(n,i.start,i.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(r!=null){if(e.query.allFields.indexOf(r.str)==-1){var n=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+r.str+"', possible fields: "+n;throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.fields=[r.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,r.start,r.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(r!=null){e.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(n==null){e.nextClause();return}switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new t.QueryParseError(i,n.start,n.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.editDistance=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="boost must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.boost=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,r){typeof define=="function"&&define.amd?define(r):typeof se=="object"?oe.exports=r():e.lunr=r()}(this,function(){return t})})()});var ne=[];function G(t,e){ne.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){ne.forEach(r=>{e.querySelectorAll(r.selector).forEach(n=>{n.dataset.hasInstance||(new r.constructor({el:n,app:this}),n.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),r=e?.parentElement;for(;r&&!r.classList.contains(".tsd-navigation");)r instanceof HTMLDetailsElement&&(r.open=!0),r=r.parentElement;if(e){let n=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=n}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let r=e.parentElement;for(;r&&r.tagName!=="SECTION";)r=r.parentElement;if(r&&r.offsetParent==null){this.alwaysVisibleMember=r,r.classList.add("always-visible");let n=document.createElement("p");n.classList.add("warning"),n.textContent="This member is normally hidden due to your filter settings.",r.prepend(n)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let r;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(r),r=setTimeout(()=>{e.classList.remove("visible"),r=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let r;return()=>{clearTimeout(r),r=setTimeout(()=>t(),e)}};var ce=Ce(ae());function de(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("tsd-search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let r=document.querySelector("#tsd-search input"),n=document.querySelector("#tsd-search .results");if(!r||!n)throw new Error("The input field or the result list wrapper was not found");let i=!1;n.addEventListener("mousedown",()=>i=!0),n.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Oe(t,n,r,s)}function Oe(t,e,r,n){r.addEventListener("input",ie(()=>{Re(t,e,r,n)},200));let i=!1;r.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Fe(e,r):s.key=="Escape"?r.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),r.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!r.matches(":focus")&&s.key==="/"&&(r.focus(),s.preventDefault())})}function _e(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=ce.Index.load(window.searchData.index))}function Re(t,e,r,n){if(_e(n,t),!n.index||!n.data)return;e.textContent="";let i=r.value.trim(),s=i?n.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${le(l.parent,i)}.${u}`);let d=document.createElement("li");d.classList.value=l.classes??"";let m=document.createElement("a");m.href=n.base+l.url,m.innerHTML=u,d.append(m),e.appendChild(d)}}function ue(t,e){let r=t.querySelector(".current");if(!r)r=t.querySelector(e==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let n=r;if(e===1)do n=n.nextElementSibling??void 0;while(n instanceof HTMLElement&&n.offsetParent==null);else do n=n.previousElementSibling??void 0;while(n instanceof HTMLElement&&n.offsetParent==null);n&&(r.classList.remove("current"),n.classList.add("current"))}}function Fe(t,e){let r=t.querySelector(".current");if(r||(r=t.querySelector("li:first-child")),r){let n=r.querySelector("a");n&&(window.location.href=n.href),e.blur()}}function le(t,e){if(e==="")return t;let r=t.toLocaleLowerCase(),n=e.toLocaleLowerCase(),i=[],s=0,o=r.indexOf(n);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+n.length))}`),s=o+n.length,o=r.indexOf(n,s);return i.push(K(t.substring(s))),i.join("")}var Me={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Me[e])}var P=class{constructor(e){this.el=e.el,this.app=e.app}};var M="mousedown",fe="mousemove",N="mouseup",J={x:0,y:0},he=!1,ee=!1,De=!1,D=!1,pe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(pe?"is-mobile":"not-mobile");pe&&"ontouchstart"in document.documentElement&&(De=!0,M="touchstart",fe="touchmove",N="touchend");document.addEventListener(M,t=>{ee=!0,D=!1;let e=M=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=M=="touchstart"?t.targetTouches[0]:t,r=J.x-(e.pageX||0),n=J.y-(e.pageY||0);D=Math.sqrt(r*r+n*n)>10}});document.addEventListener(N,()=>{ee=!1});document.addEventListener("click",t=>{he&&(t.preventDefault(),t.stopImmediatePropagation(),he=!1)});var X=class extends P{constructor(r){super(r);this.className=this.el.dataset.toggle||"",this.el.addEventListener(N,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(M,n=>this.onDocumentPointerDown(n)),document.addEventListener(N,n=>this.onDocumentPointerUp(n))}setActive(r){if(this.active==r)return;this.active=r,document.documentElement.classList.toggle("has-"+this.className,r),this.el.classList.toggle("active",r);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(r){D||(this.setActive(!0),r.preventDefault())}onDocumentPointerDown(r){if(this.active){if(r.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(r){if(!D&&this.active&&r.target.closest(".col-sidebar")){let n=r.target.closest("a");if(n){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),n.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var me=document.head.appendChild(document.createElement("style"));me.dataset.for="filters";var Y=class extends P{constructor(r){super(r);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),me.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let r=Q.getItem(this.key);return r?r==="true":this.el.checked}setLocalStorage(r){Q.setItem(this.key,r.toString()),this.value=r,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let n=Array.from(r.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);r.style.display=n?"none":"block"})}};var Z=class extends P{constructor(r){super(r);this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update()),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ve(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}de();G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var ge=document.getElementById("tsd-theme");ge&&ve(ge);var Ae=new U;Object.defineProperty(window,"app",{value:Ae});document.querySelectorAll("summary a").forEach(t=>{t.addEventListener("click",()=>{location.assign(t.href)})});})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/assets/search.js b/assets/search.js new file mode 100644 index 0000000..c0517d5 --- /dev/null +++ b/assets/search.js @@ -0,0 +1 @@ +window.searchData = JSON.parse("{\"rows\":[{\"kind\":64,\"name\":\"keys\",\"url\":\"functions/keys.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"values\",\"url\":\"functions/values.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"fromLists\",\"url\":\"functions/fromLists.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"compare\",\"url\":\"functions/compare.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"isEqual\",\"url\":\"functions/isEqual.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"get\",\"url\":\"functions/get.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"getAll\",\"url\":\"functions/getAll.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"getPath\",\"url\":\"functions/getPath.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"hasPath\",\"url\":\"functions/hasPath.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"set\",\"url\":\"functions/set.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"swap\",\"url\":\"functions/swap.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"remove\",\"url\":\"functions/remove.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"count\",\"url\":\"functions/count.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"countAs\",\"url\":\"functions/countAs.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"min\",\"url\":\"functions/min.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"minEntry\",\"url\":\"functions/minEntry.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"max\",\"url\":\"functions/max.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"maxEntry\",\"url\":\"functions/maxEntry.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"range\",\"url\":\"functions/range.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"rangeEntries\",\"url\":\"functions/rangeEntries.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"subsets\",\"url\":\"functions/subsets.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"randomKey\",\"url\":\"functions/randomKey.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"randomValue\",\"url\":\"functions/randomValue.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"randomEntry\",\"url\":\"functions/randomEntry.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"randomSubset\",\"url\":\"functions/randomSubset.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"has\",\"url\":\"functions/has.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"hasValue\",\"url\":\"functions/hasValue.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"hasEntry\",\"url\":\"functions/hasEntry.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"hasSubset\",\"url\":\"functions/hasSubset.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"find\",\"url\":\"functions/find.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"findAll\",\"url\":\"functions/findAll.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"search\",\"url\":\"functions/search.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"searchAll\",\"url\":\"functions/searchAll.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"searchValue\",\"url\":\"functions/searchValue.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"searchValueAll\",\"url\":\"functions/searchValueAll.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"forEach\",\"url\":\"functions/forEach.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"some\",\"url\":\"functions/some.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"every\",\"url\":\"functions/every.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"map\",\"url\":\"functions/map.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"reduce\",\"url\":\"functions/reduce.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"filter\",\"url\":\"functions/filter.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"filterAt\",\"url\":\"functions/filterAt.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"reject\",\"url\":\"functions/reject.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"rejectAt\",\"url\":\"functions/rejectAt.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"flat\",\"url\":\"functions/flat.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"flatMap\",\"url\":\"functions/flatMap.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"zip\",\"url\":\"functions/zip.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"partition\",\"url\":\"functions/partition.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"partitionAs\",\"url\":\"functions/partitionAs.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"chunk\",\"url\":\"functions/chunk.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"concat\",\"url\":\"functions/concat.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"join\",\"url\":\"functions/join.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"isDisjoint\",\"url\":\"functions/isDisjoint.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"unionKeys\",\"url\":\"functions/unionKeys.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"union\",\"url\":\"functions/union.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"intersection\",\"url\":\"functions/intersection.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"difference\",\"url\":\"functions/difference.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"symmetricDifference\",\"url\":\"functions/symmetricDifference.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"Entries\",\"url\":\"types/Entries.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"Lists\",\"url\":\"types/Lists.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"ReadFunction\",\"url\":\"types/ReadFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ReadFunction.html#__type\",\"classes\":\"\",\"parent\":\"ReadFunction\"},{\"kind\":4194304,\"name\":\"CombineFunction\",\"url\":\"types/CombineFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/CombineFunction.html#__type\",\"classes\":\"\",\"parent\":\"CombineFunction\"},{\"kind\":4194304,\"name\":\"CompareFunction\",\"url\":\"types/CompareFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/CompareFunction.html#__type\",\"classes\":\"\",\"parent\":\"CompareFunction\"},{\"kind\":4194304,\"name\":\"ProcessFunction\",\"url\":\"types/ProcessFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ProcessFunction.html#__type\",\"classes\":\"\",\"parent\":\"ProcessFunction\"},{\"kind\":4194304,\"name\":\"TestFunction\",\"url\":\"types/TestFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/TestFunction.html#__type\",\"classes\":\"\",\"parent\":\"TestFunction\"},{\"kind\":4194304,\"name\":\"MapFunction\",\"url\":\"types/MapFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/MapFunction.html#__type\",\"classes\":\"\",\"parent\":\"MapFunction\"},{\"kind\":4194304,\"name\":\"ReduceFunction\",\"url\":\"types/ReduceFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ReduceFunction.html#__type\",\"classes\":\"\",\"parent\":\"ReduceFunction\"},{\"kind\":4194304,\"name\":\"EndFunction\",\"url\":\"types/EndFunction.html\",\"classes\":\"\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/EndFunction.html#__type\",\"classes\":\"\",\"parent\":\"EndFunction\"},{\"kind\":8388608,\"name\":\"key\",\"url\":\"modules.html#key\",\"classes\":\"\"},{\"kind\":8388608,\"name\":\"value\",\"url\":\"modules.html#value\",\"classes\":\"\"},{\"kind\":8388608,\"name\":\"entry\",\"url\":\"modules.html#entry\",\"classes\":\"\"},{\"kind\":8388608,\"name\":\"subset\",\"url\":\"modules.html#subset\",\"classes\":\"\"},{\"kind\":8388608,\"name\":\"length\",\"url\":\"modules.html#length\",\"classes\":\"\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,40.013]],[\"comment/0\",[]],[\"name/1\",[1,40.013]],[\"comment/1\",[]],[\"name/2\",[2,40.013]],[\"comment/2\",[]],[\"name/3\",[3,40.013]],[\"comment/3\",[]],[\"name/4\",[4,40.013]],[\"comment/4\",[]],[\"name/5\",[5,40.013]],[\"comment/5\",[]],[\"name/6\",[6,40.013]],[\"comment/6\",[]],[\"name/7\",[7,40.013]],[\"comment/7\",[]],[\"name/8\",[8,40.013]],[\"comment/8\",[]],[\"name/9\",[9,40.013]],[\"comment/9\",[]],[\"name/10\",[10,40.013]],[\"comment/10\",[]],[\"name/11\",[11,40.013]],[\"comment/11\",[]],[\"name/12\",[12,40.013]],[\"comment/12\",[]],[\"name/13\",[13,40.013]],[\"comment/13\",[]],[\"name/14\",[14,40.013]],[\"comment/14\",[]],[\"name/15\",[15,40.013]],[\"comment/15\",[]],[\"name/16\",[16,40.013]],[\"comment/16\",[]],[\"name/17\",[17,40.013]],[\"comment/17\",[]],[\"name/18\",[18,40.013]],[\"comment/18\",[]],[\"name/19\",[19,40.013]],[\"comment/19\",[]],[\"name/20\",[20,40.013]],[\"comment/20\",[]],[\"name/21\",[21,40.013]],[\"comment/21\",[]],[\"name/22\",[22,40.013]],[\"comment/22\",[]],[\"name/23\",[23,40.013]],[\"comment/23\",[]],[\"name/24\",[24,40.013]],[\"comment/24\",[]],[\"name/25\",[25,40.013]],[\"comment/25\",[]],[\"name/26\",[26,40.013]],[\"comment/26\",[]],[\"name/27\",[27,40.013]],[\"comment/27\",[]],[\"name/28\",[28,40.013]],[\"comment/28\",[]],[\"name/29\",[29,40.013]],[\"comment/29\",[]],[\"name/30\",[30,40.013]],[\"comment/30\",[]],[\"name/31\",[31,40.013]],[\"comment/31\",[]],[\"name/32\",[32,40.013]],[\"comment/32\",[]],[\"name/33\",[33,40.013]],[\"comment/33\",[]],[\"name/34\",[34,40.013]],[\"comment/34\",[]],[\"name/35\",[35,40.013]],[\"comment/35\",[]],[\"name/36\",[36,40.013]],[\"comment/36\",[]],[\"name/37\",[37,40.013]],[\"comment/37\",[]],[\"name/38\",[38,40.013]],[\"comment/38\",[]],[\"name/39\",[39,40.013]],[\"comment/39\",[]],[\"name/40\",[40,40.013]],[\"comment/40\",[]],[\"name/41\",[41,40.013]],[\"comment/41\",[]],[\"name/42\",[42,40.013]],[\"comment/42\",[]],[\"name/43\",[43,40.013]],[\"comment/43\",[]],[\"name/44\",[44,40.013]],[\"comment/44\",[]],[\"name/45\",[45,40.013]],[\"comment/45\",[]],[\"name/46\",[46,40.013]],[\"comment/46\",[]],[\"name/47\",[47,40.013]],[\"comment/47\",[]],[\"name/48\",[48,40.013]],[\"comment/48\",[]],[\"name/49\",[49,40.013]],[\"comment/49\",[]],[\"name/50\",[50,40.013]],[\"comment/50\",[]],[\"name/51\",[51,40.013]],[\"comment/51\",[]],[\"name/52\",[52,40.013]],[\"comment/52\",[]],[\"name/53\",[53,40.013]],[\"comment/53\",[]],[\"name/54\",[54,40.013]],[\"comment/54\",[]],[\"name/55\",[55,40.013]],[\"comment/55\",[]],[\"name/56\",[56,40.013]],[\"comment/56\",[]],[\"name/57\",[57,40.013]],[\"comment/57\",[]],[\"name/58\",[58,40.013]],[\"comment/58\",[]],[\"name/59\",[59,40.013]],[\"comment/59\",[]],[\"name/60\",[60,40.013]],[\"comment/60\",[]],[\"name/61\",[61,22.667]],[\"comment/61\",[]],[\"name/62\",[62,40.013]],[\"comment/62\",[]],[\"name/63\",[61,22.667]],[\"comment/63\",[]],[\"name/64\",[63,40.013]],[\"comment/64\",[]],[\"name/65\",[61,22.667]],[\"comment/65\",[]],[\"name/66\",[64,40.013]],[\"comment/66\",[]],[\"name/67\",[61,22.667]],[\"comment/67\",[]],[\"name/68\",[65,40.013]],[\"comment/68\",[]],[\"name/69\",[61,22.667]],[\"comment/69\",[]],[\"name/70\",[66,40.013]],[\"comment/70\",[]],[\"name/71\",[61,22.667]],[\"comment/71\",[]],[\"name/72\",[67,40.013]],[\"comment/72\",[]],[\"name/73\",[61,22.667]],[\"comment/73\",[]],[\"name/74\",[68,40.013]],[\"comment/74\",[]],[\"name/75\",[61,22.667]],[\"comment/75\",[]],[\"name/76\",[69,40.013]],[\"comment/76\",[]],[\"name/77\",[70,40.013]],[\"comment/77\",[]],[\"name/78\",[71,40.013]],[\"comment/78\",[]],[\"name/79\",[72,40.013]],[\"comment/79\",[]],[\"name/80\",[73,40.013]],[\"comment/80\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":61,\"name\":{\"61\":{},\"63\":{},\"65\":{},\"67\":{},\"69\":{},\"71\":{},\"73\":{},\"75\":{}},\"comment\":{}}],[\"chunk\",{\"_index\":49,\"name\":{\"49\":{}},\"comment\":{}}],[\"combinefunction\",{\"_index\":62,\"name\":{\"62\":{}},\"comment\":{}}],[\"compare\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"comparefunction\",{\"_index\":63,\"name\":{\"64\":{}},\"comment\":{}}],[\"concat\",{\"_index\":50,\"name\":{\"50\":{}},\"comment\":{}}],[\"count\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}],[\"countas\",{\"_index\":13,\"name\":{\"13\":{}},\"comment\":{}}],[\"difference\",{\"_index\":56,\"name\":{\"56\":{}},\"comment\":{}}],[\"endfunction\",{\"_index\":68,\"name\":{\"74\":{}},\"comment\":{}}],[\"entries\",{\"_index\":58,\"name\":{\"58\":{}},\"comment\":{}}],[\"entry\",{\"_index\":71,\"name\":{\"78\":{}},\"comment\":{}}],[\"every\",{\"_index\":37,\"name\":{\"37\":{}},\"comment\":{}}],[\"filter\",{\"_index\":40,\"name\":{\"40\":{}},\"comment\":{}}],[\"filterat\",{\"_index\":41,\"name\":{\"41\":{}},\"comment\":{}}],[\"find\",{\"_index\":29,\"name\":{\"29\":{}},\"comment\":{}}],[\"findall\",{\"_index\":30,\"name\":{\"30\":{}},\"comment\":{}}],[\"flat\",{\"_index\":44,\"name\":{\"44\":{}},\"comment\":{}}],[\"flatmap\",{\"_index\":45,\"name\":{\"45\":{}},\"comment\":{}}],[\"foreach\",{\"_index\":35,\"name\":{\"35\":{}},\"comment\":{}}],[\"fromlists\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"get\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"getall\",{\"_index\":6,\"name\":{\"6\":{}},\"comment\":{}}],[\"getpath\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"has\",{\"_index\":25,\"name\":{\"25\":{}},\"comment\":{}}],[\"hasentry\",{\"_index\":27,\"name\":{\"27\":{}},\"comment\":{}}],[\"haspath\",{\"_index\":8,\"name\":{\"8\":{}},\"comment\":{}}],[\"hassubset\",{\"_index\":28,\"name\":{\"28\":{}},\"comment\":{}}],[\"hasvalue\",{\"_index\":26,\"name\":{\"26\":{}},\"comment\":{}}],[\"intersection\",{\"_index\":55,\"name\":{\"55\":{}},\"comment\":{}}],[\"isdisjoint\",{\"_index\":52,\"name\":{\"52\":{}},\"comment\":{}}],[\"isequal\",{\"_index\":4,\"name\":{\"4\":{}},\"comment\":{}}],[\"join\",{\"_index\":51,\"name\":{\"51\":{}},\"comment\":{}}],[\"key\",{\"_index\":69,\"name\":{\"76\":{}},\"comment\":{}}],[\"keys\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"length\",{\"_index\":73,\"name\":{\"80\":{}},\"comment\":{}}],[\"lists\",{\"_index\":59,\"name\":{\"59\":{}},\"comment\":{}}],[\"map\",{\"_index\":38,\"name\":{\"38\":{}},\"comment\":{}}],[\"mapfunction\",{\"_index\":66,\"name\":{\"70\":{}},\"comment\":{}}],[\"max\",{\"_index\":16,\"name\":{\"16\":{}},\"comment\":{}}],[\"maxentry\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"min\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"minentry\",{\"_index\":15,\"name\":{\"15\":{}},\"comment\":{}}],[\"partition\",{\"_index\":47,\"name\":{\"47\":{}},\"comment\":{}}],[\"partitionas\",{\"_index\":48,\"name\":{\"48\":{}},\"comment\":{}}],[\"processfunction\",{\"_index\":64,\"name\":{\"66\":{}},\"comment\":{}}],[\"randomentry\",{\"_index\":23,\"name\":{\"23\":{}},\"comment\":{}}],[\"randomkey\",{\"_index\":21,\"name\":{\"21\":{}},\"comment\":{}}],[\"randomsubset\",{\"_index\":24,\"name\":{\"24\":{}},\"comment\":{}}],[\"randomvalue\",{\"_index\":22,\"name\":{\"22\":{}},\"comment\":{}}],[\"range\",{\"_index\":18,\"name\":{\"18\":{}},\"comment\":{}}],[\"rangeentries\",{\"_index\":19,\"name\":{\"19\":{}},\"comment\":{}}],[\"readfunction\",{\"_index\":60,\"name\":{\"60\":{}},\"comment\":{}}],[\"reduce\",{\"_index\":39,\"name\":{\"39\":{}},\"comment\":{}}],[\"reducefunction\",{\"_index\":67,\"name\":{\"72\":{}},\"comment\":{}}],[\"reject\",{\"_index\":42,\"name\":{\"42\":{}},\"comment\":{}}],[\"rejectat\",{\"_index\":43,\"name\":{\"43\":{}},\"comment\":{}}],[\"remove\",{\"_index\":11,\"name\":{\"11\":{}},\"comment\":{}}],[\"search\",{\"_index\":31,\"name\":{\"31\":{}},\"comment\":{}}],[\"searchall\",{\"_index\":32,\"name\":{\"32\":{}},\"comment\":{}}],[\"searchvalue\",{\"_index\":33,\"name\":{\"33\":{}},\"comment\":{}}],[\"searchvalueall\",{\"_index\":34,\"name\":{\"34\":{}},\"comment\":{}}],[\"set\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"some\",{\"_index\":36,\"name\":{\"36\":{}},\"comment\":{}}],[\"subset\",{\"_index\":72,\"name\":{\"79\":{}},\"comment\":{}}],[\"subsets\",{\"_index\":20,\"name\":{\"20\":{}},\"comment\":{}}],[\"swap\",{\"_index\":10,\"name\":{\"10\":{}},\"comment\":{}}],[\"symmetricdifference\",{\"_index\":57,\"name\":{\"57\":{}},\"comment\":{}}],[\"testfunction\",{\"_index\":65,\"name\":{\"68\":{}},\"comment\":{}}],[\"union\",{\"_index\":54,\"name\":{\"54\":{}},\"comment\":{}}],[\"unionkeys\",{\"_index\":53,\"name\":{\"53\":{}},\"comment\":{}}],[\"value\",{\"_index\":70,\"name\":{\"77\":{}},\"comment\":{}}],[\"values\",{\"_index\":1,\"name\":{\"1\":{}},\"comment\":{}}],[\"zip\",{\"_index\":46,\"name\":{\"46\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..18b4f8f --- /dev/null +++ b/assets/style.css @@ -0,0 +1,1367 @@ +:root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-icon-background: var(--light-color-background); + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + --light-color-link: #1f70c2; + + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: var(--light-color-ts-variable); + --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var(--light-color-ts-constructor); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: var(--light-color-ts-type-alias); + --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + /* object literal not included as it is not used and will be removed in 0.25 */ + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + --dark-color-link: #00aff4; + + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: var(--dark-color-ts-variable); + --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias); + --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + /* object literal not included as it is not used and will be removed in 0.25 */ + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; +} + +@media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } +} + +html { + color-scheme: var(--color-scheme); +} + +body { + margin: 0; +} + +:root[data-theme="light"] { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); +} + +:root[data-theme="dark"] { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); +} + +.always-visible, +.always-visible .tsd-signatures { + display: inherit !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2; +} + +h1 > a, +h2 > a, +h3 > a, +h4 > a, +h5 > a, +h6 > a { + text-decoration: none; + color: var(--color-text); +} + +h1 { + font-size: 1.875rem; + margin: 0.67rem 0; +} + +h2 { + font-size: 1.5rem; + margin: 0.83rem 0; +} + +h3 { + font-size: 1.25rem; + margin: 1rem 0; +} + +h4 { + font-size: 1.05rem; + margin: 1.33rem 0; +} + +h5 { + font-size: 1rem; + margin: 1.5rem 0; +} + +h6 { + font-size: 0.875rem; + margin: 2.33rem 0; +} + +.uppercase { + text-transform: uppercase; +} + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +.container { + max-width: 1700px; + padding: 0 2rem; +} + +/* Footer */ +.tsd-generator { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; +} + +.tsd-generator > p { + margin-top: 0; + margin-bottom: 0; + padding: 0 1rem; +} + +.container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); +} + +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } +} +@keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } +} +@keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } +} +body { + background: var(--color-background); + font-family: "Segoe UI", sans-serif; + font-size: 16px; + color: var(--color-text); +} + +a { + color: var(--color-link); + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; +} + +code, +pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; +} + +pre { + position: relative; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); +} +pre code { + padding: 0; + font-size: 100%; +} +pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; +} +pre:hover > button, +pre > button.visible { + opacity: 1; +} + +blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; +} + +.tsd-typography { + line-height: 1.333em; +} +.tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-typography h4, +.tsd-typography .tsd-index-panel h3, +.tsd-index-panel .tsd-typography h3, +.tsd-typography h5, +.tsd-typography h6 { + font-size: 1em; + margin: 0; +} +.tsd-typography h5, +.tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, +.tsd-typography ul, +.tsd-typography ol { + margin: 1em 0; +} + +.tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); +} +.tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; +} +.tsd-breadcrumb a:hover { + text-decoration: underline; +} +.tsd-breadcrumb li { + display: inline; +} +.tsd-breadcrumb li:after { + content: " / "; +} + +.tsd-comment-tags { + display: flex; + flex-direction: column; +} +dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; +} +dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; +} +dl.tsd-comment-tag-group dd { + margin: 0; +} +code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; +} +h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; +} + +dl.tsd-comment-tag-group dd:before, +dl.tsd-comment-tag-group dd:after { + content: " "; +} +dl.tsd-comment-tag-group dd pre, +dl.tsd-comment-tag-group dd:after { + clear: both; +} +dl.tsd-comment-tag-group p { + margin: 0; +} + +.tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; +} +.tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; +} + +.tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; +} +.tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; +} +.tsd-filter-input { + display: flex; + width: fit-content; + width: -moz-fit-content; + align-items: center; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + cursor: pointer; +} +.tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; +} +.tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; +} +.tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; +} +.tsd-filter-input input[type="checkbox"]:focus + svg { + transform: scale(0.95); +} +.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { + transform: scale(1); +} +.tsd-checkbox-background { + fill: var(--color-accent); +} +input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); +} + +.tsd-theme-toggle { + padding-top: 0.75rem; +} +.tsd-theme-toggle > h4 { + display: inline; + vertical-align: middle; + margin-right: 0.75rem; +} + +.tsd-hierarchy { + list-style: square; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.tsd-panel-group.tsd-index-group { + margin-bottom: 0; +} +.tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; +} +@media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } +} +@media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } +} +.tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; +} + +.tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; +} + +.tsd-anchor { + position: relative; + top: -100px; +} + +.tsd-member { + position: relative; +} +.tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; +} + +.tsd-navigation.settings { + margin: 1rem 0; +} +.tsd-navigation > a, +.tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.5rem); +} +.tsd-navigation a, +.tsd-navigation summary > span, +.tsd-page-navigation a { + display: inline-flex; + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; +} +.tsd-navigation a.current, +.tsd-page-navigation a.current { + background: var(--color-active-menu-item); +} +.tsd-navigation a:hover, +.tsd-page-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul, +.tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li, +.tsd-page-navigation li { + padding: 0; + max-width: 100%; +} +.tsd-nested-navigation { + margin-left: 3rem; +} +.tsd-nested-navigation > li > details { + margin-left: -1.5rem; +} +.tsd-small-nested-navigation { + margin-left: 1.5rem; +} +.tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; +} + +.tsd-nested-navigation > li > a, +.tsd-nested-navigation > li > span { + width: calc(100% - 1.75rem - 0.5rem); +} + +.tsd-page-navigation ul { + padding-left: 1.75rem; +} + +#tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; +} +#tsd-sidebar-links a:last-of-type { + margin-bottom: 0; +} + +a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} +.tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ +} +.tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ +} +.tsd-accordion-summary, +.tsd-accordion-summary a { + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + + cursor: pointer; +} +.tsd-accordion-summary a { + width: calc(100% - 1.5rem); +} +.tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; +} +.tsd-index-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; +} +.tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; +} +.tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; +} + +.tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; +} +.tsd-kind-icon path { + transform-origin: center; + transform: scale(1.1); +} +.tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; +} + +.tsd-panel { + margin-bottom: 2.5rem; +} +.tsd-panel.tsd-member { + margin-bottom: 4rem; +} +.tsd-panel:empty { + display: none; +} +.tsd-panel > h1, +.tsd-panel > h2, +.tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; +} +.tsd-panel > h1.tsd-before-signature, +.tsd-panel > h2.tsd-before-signature, +.tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; +} + +.tsd-panel-group { + margin: 4rem 0; +} +.tsd-panel-group.tsd-index-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group details { + margin: 2rem 0; +} + +#tsd-search { + transition: background-color 0.2s; +} +#tsd-search .title { + position: relative; + z-index: 2; +} +#tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 2.5rem; + height: 100%; +} +#tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); +} +#tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; +} +#tsd-search .field input, +#tsd-search .title, +#tsd-toolbar-links a { + transition: opacity 0.2s; +} +#tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +#tsd-search .results li { + padding: 0 10px; + background-color: var(--color-background); +} +#tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); +} +#tsd-search .results li.state { + display: none; +} +#tsd-search .results li.current, +#tsd-search .results li:hover { + background-color: var(--color-accent); +} +#tsd-search .results a { + display: block; +} +#tsd-search .results a:before { + top: 10px; +} +#tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; +} +#tsd-search.has-focus { + background-color: var(--color-accent); +} +#tsd-search.has-focus .field input { + top: 0; + opacity: 1; +} +#tsd-search.has-focus .title, +#tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; +} +#tsd-search.has-focus .results { + visibility: visible; +} +#tsd-search.loading .results li.state.loading { + display: block; +} +#tsd-search.failure .results li.state.failure { + display: block; +} + +#tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; +} +#tsd-toolbar-links a { + margin-left: 1.5rem; +} +#tsd-toolbar-links a:hover { + text-decoration: underline; +} + +.tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; +} + +.tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; +} + +.tsd-signature-type { + font-style: italic; + font-weight: normal; +} + +.tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; +} +.tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; +} +.tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; +} + +ul.tsd-parameter-list, +ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; +} +ul.tsd-parameter-list > li.tsd-parameter-signature, +ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; +} +ul.tsd-parameter-list h5, +ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} +.tsd-sources { + margin-top: 1rem; + font-size: 0.875em; +} +.tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; +} +.tsd-sources ul { + list-style: none; + padding: 0; +} + +.tsd-page-toolbar { + position: sticky; + z-index: 1; + top: 0; + left: 0; + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; +} +.tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; +} +.tsd-page-toolbar a.title { + font-weight: bold; +} +.tsd-page-toolbar a.title:hover { + text-decoration: underline; +} +.tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; +} +.tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; +} +.tsd-page-toolbar .table-cell:first-child { + width: 100%; +} +.tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; +} + +.tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: opacity 0.1s, background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-widget:hover { + opacity: 0.9; +} +.tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); +} +.tsd-widget.no-caption { + width: 40px; +} +.tsd-widget.no-caption:before { + margin: 0; +} + +.tsd-widget.options, +.tsd-widget.menu { + display: none; +} +input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; +} +input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; +} + +img { + max-width: 100%; +} + +.tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + vertical-align: middle; + color: var(--color-text); +} + +.tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; +} + +.tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; +} + +.deprecated { + text-decoration: line-through; +} + +.warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); +} + +.tsd-kind-project { + color: var(--color-ts-project); +} +.tsd-kind-module { + color: var(--color-ts-module); +} +.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-kind-enum-member { + color: var(--color-ts-enum-member); +} +.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-kind-constructor { + color: var(--color-ts-constructor); +} +.tsd-kind-property { + color: var(--color-ts-property); +} +.tsd-kind-method { + color: var(--color-ts-method); +} +.tsd-kind-call-signature { + color: var(--color-ts-call-signature); +} +.tsd-kind-index-signature { + color: var(--color-ts-index-signature); +} +.tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); +} +.tsd-kind-parameter { + color: var(--color-ts-parameter); +} +.tsd-kind-type-literal { + color: var(--color-ts-type-literal); +} +.tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); +} +.tsd-kind-accessor { + color: var(--color-ts-accessor); +} +.tsd-kind-get-signature { + color: var(--color-ts-get-signature); +} +.tsd-kind-set-signature { + color: var(--color-ts-set-signature); +} +.tsd-kind-type-alias { + color: var(--color-ts-type-alias); +} + +/* if we have a kind icon, don't color the text by kind */ +.tsd-kind-icon ~ span { + color: var(--color-text); +} + +* { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); +} + +*::-webkit-scrollbar { + width: 0.75rem; +} + +*::-webkit-scrollbar-track { + background: var(--color-icon-background); +} + +*::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); +} + +/* mobile */ +@media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } +} + +/* one sidebar */ +@media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } +} +@media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } +} + +/* two sidebars */ +@media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem 0; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } +} diff --git a/functions/chunk.html b/functions/chunk.html new file mode 100644 index 0000000..13fb474 --- /dev/null +++ b/functions/chunk.html @@ -0,0 +1,154 @@ +chunk | extra-entries
+
+ +
+
+
+
+ +

Function chunk

+
+
    + +
  • +

    Break entries into chunks of given size.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      n: number = 1
      +

      chunk size [1]

      +
      +
    • +
    • +
      s: number = n
      +

      chunk step [n]

      +
      +
    +

    Returns Entries<K, V>[]

    [x[0..n], x[s..s+n], x[2s..2s+n], ...]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/compare.html b/functions/compare.html new file mode 100644 index 0000000..9568c21 --- /dev/null +++ b/functions/compare.html @@ -0,0 +1,161 @@ +compare | extra-entries
+
+ +
+
+
+
+ +

Function compare

+
+
    + +
  • +

    Compare two entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      y: Entries<K, V>
      +

      another entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns number

    x=y: 0, otherwise: -ve/+ve

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/concat.html b/functions/concat.html new file mode 100644 index 0000000..0f59592 --- /dev/null +++ b/functions/concat.html @@ -0,0 +1,144 @@ +concat | extra-entries
+
+ +
+
+
+
+ +

Function concat

+
+
    + +
  • +

    Append entries from all entries, preferring last.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      Rest ...xs: Entries<K, V>[]
      +

      all entries

      +
      +
    +

    Returns Entries<K, V>

    x₀ ∪ x₁ ∪ ... | [x₀, x₁, ...] = xs

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/count.html b/functions/count.html new file mode 100644 index 0000000..e6bfbb4 --- /dev/null +++ b/functions/count.html @@ -0,0 +1,149 @@ +count | extra-entries
+
+ +
+
+
+
+ +

Function count

+
+
    + +
  • +

    Count values which satisfy a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns number

    Σtᵢ | tᵢ = 1 if ft(vᵢ) else 0; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/countAs.html b/functions/countAs.html new file mode 100644 index 0000000..6efc97a --- /dev/null +++ b/functions/countAs.html @@ -0,0 +1,151 @@ +countAs | extra-entries
+
+ +
+
+
+
+ +

Function countAs

+
+
    + +
  • +

    Count occurrences of values.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns Map<V | W, number>

    Map {value ⇒ count}

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/difference.html b/functions/difference.html new file mode 100644 index 0000000..e09de1a --- /dev/null +++ b/functions/difference.html @@ -0,0 +1,149 @@ +difference | extra-entries
+
+ +
+
+
+
+ +

Function difference

+
+
    + +
  • +

    Obtain entries not present in another entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      y: Entries<K, V>
      +

      another entries

      +
      +
    +

    Returns Entries<K, V>

    x = x - y = {[kᵢ, vᵢ] | [kᵢ, vᵢ] ∈ x, [kᵢ, *] ∉ y}

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/drop.html b/functions/drop.html new file mode 100644 index 0000000..d12a9be --- /dev/null +++ b/functions/drop.html @@ -0,0 +1,148 @@ +drop | extra-entries
+
+ +
+
+
+
+ +

Function drop

+
+
    + +
  • +

    Discard first n values only. +📘

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    +
    +

    Parameters

    +
      +
    • +
      x: Iterable<T>
      +

      an iterable

      +
      +
    • +
    • +
      Optional n: number
      +

      number of values [1]

      +
      +
    +

    Returns IterableIterator<T>

    x[n..]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/every.html b/functions/every.html new file mode 100644 index 0000000..741334c --- /dev/null +++ b/functions/every.html @@ -0,0 +1,149 @@ +every | extra-entries
+
+ +
+
+
+
+ +

Function every

+
+
    + +
  • +

    Check if all values satisfy a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns boolean

    true if ft(vᵢ) = true for every [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/filter.html b/functions/filter.html new file mode 100644 index 0000000..9f8125c --- /dev/null +++ b/functions/filter.html @@ -0,0 +1,149 @@ +filter | extra-entries
+
+ +
+
+
+
+ +

Function filter

+
+
    + +
  • +

    Keep entries which pass a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Entries<K, V>

    [k₀, v₀], [k₁, v₁], ... | ft(vᵢ) = true; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/filterAt.html b/functions/filterAt.html new file mode 100644 index 0000000..8e60809 --- /dev/null +++ b/functions/filterAt.html @@ -0,0 +1,149 @@ +filterAt | extra-entries
+
+ +
+
+
+
+ +

Function filterAt

+
+
    + +
  • +

    Keep entries with given keys.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      ks: K[]
      +

      keys

      +
      +
    +

    Returns Entries<K, V>

    [k₀, v₀], [k₁, v₁], ... | kᵢ ∈ ks; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/find.html b/functions/find.html new file mode 100644 index 0000000..ab90d62 --- /dev/null +++ b/functions/find.html @@ -0,0 +1,149 @@ +find | extra-entries
+
+ +
+
+
+
+ +

Function find

+
+
    + +
  • +

    Find first value passing a test (default order).

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns V

    first v | ft(v) = true; [k, v] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/findAll.html b/functions/findAll.html new file mode 100644 index 0000000..0f52220 --- /dev/null +++ b/functions/findAll.html @@ -0,0 +1,149 @@ +findAll | extra-entries
+
+ +
+
+
+
+ +

Function findAll

+
+
    + +
  • +

    Find values passing a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Iterable<V>

    v₀, v₁, ... | ft(vᵢ) = true; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/flat.html b/functions/flat.html new file mode 100644 index 0000000..c02ffa5 --- /dev/null +++ b/functions/flat.html @@ -0,0 +1,157 @@ +flat | extra-entries
+
+ +
+
+
+
+ +

Function flat

+
+
    + +
  • +

    Flatten nested entries to given depth.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, any>
      +

      nested entries

      +
      +
    • +
    • +
      n: number = -1
      +

      maximum depth [-1 ⇒ all]

      +
      +
    • +
    • +
      fm: MapFunction<K, any, any> = null
      +

      map function (v, k, x)

      +
      +
    • +
    • +
      ft: TestFunction<K, any> = null
      +

      test function for flatten (v, k, x) [is]

      +
      +
    +

    Returns Entries<K, any>

    flat entries

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/flatMap.html b/functions/flatMap.html new file mode 100644 index 0000000..35e2afc --- /dev/null +++ b/functions/flatMap.html @@ -0,0 +1,152 @@ +flatMap | extra-entries
+
+ +
+
+
+
+ +

Function flatMap

+
+
    + +
  • +

    Flatten nested entries, based on map function.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, any>
      +

      nested entries

      +
      +
    • +
    • +
      fm: MapFunction<K, any, any> = null
      +

      map function (v, k, x)

      +
      +
    • +
    • +
      ft: TestFunction<K, any> = null
      +

      test function for flatten (v, k, x) [is]

      +
      +
    +

    Returns Entries<K, any>

    flat entries

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/forEach.html b/functions/forEach.html new file mode 100644 index 0000000..ec7e097 --- /dev/null +++ b/functions/forEach.html @@ -0,0 +1,148 @@ +forEach | extra-entries
+
+ +
+
+
+
+ +

Function forEach

+
+
    + +
  • +

    Call a function for each value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/fromLists.html b/functions/fromLists.html new file mode 100644 index 0000000..7f43448 --- /dev/null +++ b/functions/fromLists.html @@ -0,0 +1,144 @@ +fromLists | extra-entries
+
+ +
+
+
+
+ +

Function fromLists

+
+
    + +
  • +

    Convert lists to entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Lists<K, V>
      +

      lists, i.e. [keys, values]

      +
      +
    +

    Returns Entries<K, V>

    x as entries

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/get.html b/functions/get.html new file mode 100644 index 0000000..c7cead4 --- /dev/null +++ b/functions/get.html @@ -0,0 +1,149 @@ +get | extra-entries
+
+ +
+
+
+
+ +

Function get

+
+
    + +
  • +

    Get value at key.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      k: K
      +

      key

      +
      +
    +

    Returns V

    x[k]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getAll.html b/functions/getAll.html new file mode 100644 index 0000000..d129b6e --- /dev/null +++ b/functions/getAll.html @@ -0,0 +1,149 @@ +getAll | extra-entries
+
+ +
+
+
+
+ +

Function getAll

+
+
    + +
  • +

    Get values at keys.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      ks: K[]
      +

      keys

      +
      +
    +

    Returns Iterable<V>

    x[k₀], x[k₁], ... | [k₀, k₁, ...] = ks

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getPath.html b/functions/getPath.html new file mode 100644 index 0000000..940a9f5 --- /dev/null +++ b/functions/getPath.html @@ -0,0 +1,147 @@ +getPath | extra-entries
+
+ +
+
+
+
+ +

Function getPath

+
+
    + +
  • +

    Get value at path in nested entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, any>
      +

      nested entries

      +
      +
    • +
    • +
      p: K[]
      +

      path

      +
      +
    +

    Returns any

    x[k₀][k₁][...] | [k₀, k₁, ...] = p

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/has.html b/functions/has.html new file mode 100644 index 0000000..5760ba0 --- /dev/null +++ b/functions/has.html @@ -0,0 +1,149 @@ +has | extra-entries
+
+ +
+
+
+
+ +

Function has

+
+
    + +
  • +

    Check if entries has a key.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      k: K
      +

      search key

      +
      +
    +

    Returns boolean

    [k, *] ∈ x?

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/hasEntry.html b/functions/hasEntry.html new file mode 100644 index 0000000..34c742c --- /dev/null +++ b/functions/hasEntry.html @@ -0,0 +1,161 @@ +hasEntry | extra-entries
+
+ +
+
+
+
+ +

Function hasEntry

+
+
    + +
  • +

    Check if entries has an entry.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      e: [K, V]
      +

      search entry ([k, v])

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns boolean

    [k, v] ∈ x? | [k, v] = e

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/hasPath.html b/functions/hasPath.html new file mode 100644 index 0000000..23e968f --- /dev/null +++ b/functions/hasPath.html @@ -0,0 +1,147 @@ +hasPath | extra-entries
+
+ +
+
+
+
+ +

Function hasPath

+
+
    + +
  • +

    Check if nested entries has a path.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, any>
      +

      nested entries

      +
      +
    • +
    • +
      p: K[]
      +

      search path

      +
      +
    +

    Returns boolean

    x[k₀][k₁][...] exists? | [k₀, k₁, ...] = p

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/hasSubset.html b/functions/hasSubset.html new file mode 100644 index 0000000..4292050 --- /dev/null +++ b/functions/hasSubset.html @@ -0,0 +1,161 @@ +hasSubset | extra-entries
+
+ +
+
+
+
+ +

Function hasSubset

+
+
    + +
  • +

    Check if entries has a subset.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      y: Entries<K, V>
      +

      search subset

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns boolean

    y ⊆ x?

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/hasValue.html b/functions/hasValue.html new file mode 100644 index 0000000..34f6d9c --- /dev/null +++ b/functions/hasValue.html @@ -0,0 +1,161 @@ +hasValue | extra-entries
+
+ +
+
+
+
+ +

Function hasValue

+
+
    + +
  • +

    Check if entries has a value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      v: V
      +

      search value

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns boolean

    [*, v] ∈ x?

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/head.html b/functions/head.html new file mode 100644 index 0000000..ffb8d37 --- /dev/null +++ b/functions/head.html @@ -0,0 +1,148 @@ +head | extra-entries
+
+ +
+
+
+
+ +

Function head

+
+
    + +
  • +

    Get first value. +📘

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    +
    +

    Parameters

    +
      +
    • +
      x: Iterable<T>
      +

      an iterable

      +
      +
    • +
    • +
      Optional vd: T
      +

      default value

      +
      +
    +

    Returns T

    x[0] || vd

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/intersection.html b/functions/intersection.html new file mode 100644 index 0000000..683c760 --- /dev/null +++ b/functions/intersection.html @@ -0,0 +1,154 @@ +intersection | extra-entries
+
+ +
+
+
+
+ +

Function intersection

+
+
    + +
  • +

    Obtain entries present in both entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Entries<K, V>

    x ∩ y = {[kᵢ, vᵢ] | [kᵢ, vᵢ] ∈ x and [kᵢ, vᵢ] ∈ y}

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/is.html b/functions/is.html new file mode 100644 index 0000000..09940e7 --- /dev/null +++ b/functions/is.html @@ -0,0 +1,138 @@ +is | extra-entries
+
+ +
+
+
+
+ +

Function is

+
+
    + +
  • +

    Check if value is an iterable. +📘

    +
    +
    +

    Parameters

    +
      +
    • +
      v: any
      +

      a value

      +
      +
    +

    Returns v is Iterable<any>

    v is iterable?

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isDisjoint.html b/functions/isDisjoint.html new file mode 100644 index 0000000..792016a --- /dev/null +++ b/functions/isDisjoint.html @@ -0,0 +1,149 @@ +isDisjoint | extra-entries
+
+ +
+
+
+
+ +

Function isDisjoint

+
+
    + +
  • +

    Check if entries have no common keys.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      y: Entries<K, V>
      +

      another entries

      +
      +
    +

    Returns boolean

    x ∩ y = Φ?

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isEmpty.html b/functions/isEmpty.html new file mode 100644 index 0000000..077878d --- /dev/null +++ b/functions/isEmpty.html @@ -0,0 +1,143 @@ +isEmpty | extra-entries
+
+ +
+
+
+
+ +

Function isEmpty

+
+
    + +
  • +

    Check if an iterable is empty. +📘

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    +
    +

    Parameters

    +
      +
    • +
      x: Iterable<T>
      +

      an iterable

      +
      +
    +

    Returns boolean

    |x| = 0?

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isEqual.html b/functions/isEqual.html new file mode 100644 index 0000000..03a4a48 --- /dev/null +++ b/functions/isEqual.html @@ -0,0 +1,161 @@ +isEqual | extra-entries
+
+ +
+
+
+
+ +

Function isEqual

+
+
    + +
  • +

    Check if two entries are equal.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      y: Entries<K, V>
      +

      another entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns boolean

    x = y?

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/join.html b/functions/join.html new file mode 100644 index 0000000..1f4ea09 --- /dev/null +++ b/functions/join.html @@ -0,0 +1,154 @@ +join | extra-entries
+
+ +
+
+
+
+ +

Function join

+
+
    + +
  • +

    Join entries together into a string.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      sep: string = ","
      +

      separator [,]

      +
      +
    • +
    • +
      asc: string = "="
      +

      associator [=]

      +
      +
    +

    Returns string

    "${k₀}=${v₀},${k₁}=${v₁}..." | [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/keys.html b/functions/keys.html new file mode 100644 index 0000000..5f87bd1 --- /dev/null +++ b/functions/keys.html @@ -0,0 +1,144 @@ +keys | extra-entries
+
+ +
+
+
+
+ +

Function keys

+
+
    + +
  • +

    List all keys.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Iterable<K>

    k₀, k₁, ... | [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/map.html b/functions/map.html new file mode 100644 index 0000000..f8b7334 --- /dev/null +++ b/functions/map.html @@ -0,0 +1,151 @@ +map | extra-entries
+
+ +
+
+
+
+ +

Function map

+
+
    + +
  • +

    Transform values of entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W>
      +

      map function (v, k, x)

      +
      +
    +

    Returns Entries<K, V | W>

    [k₀, fm(v₀)], [k₁, fm(v₁)], ... | [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/max.html b/functions/max.html new file mode 100644 index 0000000..efe1cb8 --- /dev/null +++ b/functions/max.html @@ -0,0 +1,156 @@ +max | extra-entries
+
+ +
+
+
+
+ +

Function max

+
+
    + +
  • +

    Find largest value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns V

    v | v ≥ vᵢ; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/maxEntry.html b/functions/maxEntry.html new file mode 100644 index 0000000..afb553c --- /dev/null +++ b/functions/maxEntry.html @@ -0,0 +1,156 @@ +maxEntry | extra-entries
+
+ +
+
+
+
+ +

Function maxEntry

+
+
    + +
  • +

    Find largest entry.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns [K, V]

    [max_key, max_value]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/min.html b/functions/min.html new file mode 100644 index 0000000..90a202e --- /dev/null +++ b/functions/min.html @@ -0,0 +1,156 @@ +min | extra-entries
+
+ +
+
+
+
+ +

Function min

+
+
    + +
  • +

    Find smallest value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns V

    v | v ≤ vᵢ; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/minEntry.html b/functions/minEntry.html new file mode 100644 index 0000000..a6c9b63 --- /dev/null +++ b/functions/minEntry.html @@ -0,0 +1,156 @@ +minEntry | extra-entries
+
+ +
+
+
+
+ +

Function minEntry

+
+
    + +
  • +

    Find smallest entry.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns [K, V]

    [min_key, min_value]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/partition.html b/functions/partition.html new file mode 100644 index 0000000..479773e --- /dev/null +++ b/functions/partition.html @@ -0,0 +1,149 @@ +partition | extra-entries
+
+ +
+
+
+
+ +

Function partition

+
+
    + +
  • +

    Segregate values by test result.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns [Entries<K, V>, Entries<K, V>]

    [satisfies, doesnt]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/partitionAs.html b/functions/partitionAs.html new file mode 100644 index 0000000..8338c59 --- /dev/null +++ b/functions/partitionAs.html @@ -0,0 +1,151 @@ +partitionAs | extra-entries
+
+ +
+
+
+
+ +

Function partitionAs

+
+
    + +
  • +

    Segregate entries by similarity.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W>
      +

      map function (v, k, x)

      +
      +
    +

    Returns Map<V | W, Entries<K, V>>

    Map {key ⇒ entries}

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomEntry.html b/functions/randomEntry.html new file mode 100644 index 0000000..d776cc7 --- /dev/null +++ b/functions/randomEntry.html @@ -0,0 +1,149 @@ +randomEntry | extra-entries
+
+ +
+
+
+
+ +

Function randomEntry

+
+
    + +
  • +

    Pick an arbitrary entry.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fr: ReadFunction<number> = Math.random
      +

      random number generator ([0, 1))

      +
      +
    +

    Returns [K, V]

    [kᵢ, vᵢ] | [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomKey.html b/functions/randomKey.html new file mode 100644 index 0000000..e32a417 --- /dev/null +++ b/functions/randomKey.html @@ -0,0 +1,149 @@ +randomKey | extra-entries
+
+ +
+
+
+
+ +

Function randomKey

+
+
    + +
  • +

    Pick an arbitrary key.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fr: ReadFunction<number> = Math.random
      +

      random number generator ([0, 1))

      +
      +
    +

    Returns K

    kᵢ | [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomSubset.html b/functions/randomSubset.html new file mode 100644 index 0000000..4bc138e --- /dev/null +++ b/functions/randomSubset.html @@ -0,0 +1,154 @@ +randomSubset | extra-entries
+
+ +
+
+
+
+ +

Function randomSubset

+
+
    + +
  • +

    Pick an arbitrary subset.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      n: number = -1
      +

      number of entries [-1 ⇒ any]

      +
      +
    • +
    • +
      fr: ReadFunction<number> = Math.random
      +

      random number generator ([0, 1))

      +
      +
    +

    Returns Entries<K, V>

    {[kᵢ, vᵢ], [kⱼ, vⱼ], ...} | [kᵢ, vᵢ], [kⱼ, vⱼ], ... ∈ x; |{[kᵢ, vᵢ], [kⱼ, vⱼ], ...}| = |x| if n<0 else n

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomValue.html b/functions/randomValue.html new file mode 100644 index 0000000..b3563d5 --- /dev/null +++ b/functions/randomValue.html @@ -0,0 +1,149 @@ +randomValue | extra-entries
+
+ +
+
+
+
+ +

Function randomValue

+
+
    + +
  • +

    Pick an arbitrary value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fr: ReadFunction<number> = Math.random
      +

      random number generator ([0, 1))

      +
      +
    +

    Returns V

    vᵢ | [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/range.html b/functions/range.html new file mode 100644 index 0000000..4933399 --- /dev/null +++ b/functions/range.html @@ -0,0 +1,156 @@ +range | extra-entries
+
+ +
+
+
+
+ +

Function range

+
+
    + +
  • +

    Find smallest and largest values.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns [V, V]

    [min_value, max_value]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/rangeEntries.html b/functions/rangeEntries.html new file mode 100644 index 0000000..860f64b --- /dev/null +++ b/functions/rangeEntries.html @@ -0,0 +1,156 @@ +rangeEntries | extra-entries
+
+ +
+
+
+
+ +

Function rangeEntries

+
+
    + +
  • +

    Find smallest and largest entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns [[K, V], [K, V]]

    [min_entry, max_entry]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/reduce.html b/functions/reduce.html new file mode 100644 index 0000000..b916a27 --- /dev/null +++ b/functions/reduce.html @@ -0,0 +1,156 @@ +reduce | extra-entries
+
+ +
+
+
+
+ +

Function reduce

+
+
    + +
  • +

    Reduce values of entries to a single value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      fr: ReduceFunction<K, V, V | W>
      +

      reduce function (acc, v, k, x)

      +
      +
    • +
    • +
      Optional acc: V | W
      +

      initial value

      +
      +
    +

    Returns V | W

    fr(fr(acc, v₀), v₁)... | fr(acc, v₀) = v₀ if acc not given

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/reject.html b/functions/reject.html new file mode 100644 index 0000000..d230cb3 --- /dev/null +++ b/functions/reject.html @@ -0,0 +1,149 @@ +reject | extra-entries
+
+ +
+
+
+
+ +

Function reject

+
+
    + +
  • +

    Discard entries which pass a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Entries<K, V>

    [k₀, v₀], [k₁, v₁], ... | ft(vᵢ) = false; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/rejectAt.html b/functions/rejectAt.html new file mode 100644 index 0000000..2433d53 --- /dev/null +++ b/functions/rejectAt.html @@ -0,0 +1,149 @@ +rejectAt | extra-entries
+
+ +
+
+
+
+ +

Function rejectAt

+
+
    + +
  • +

    Discard entries with given keys.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      ks: K[]
      +

      keys

      +
      +
    +

    Returns Entries<K, V>

    [k₀, v₀], [k₁, v₁], ... | kᵢ ∉ ks; [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/remove.html b/functions/remove.html new file mode 100644 index 0000000..e379b42 --- /dev/null +++ b/functions/remove.html @@ -0,0 +1,149 @@ +remove | extra-entries
+
+ +
+
+
+
+ +

Function remove

+
+
    + +
  • +

    Remove value at key.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      k: K
      +

      key

      +
      +
    +

    Returns Entries<K, V>

    x \: [k]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/search.html b/functions/search.html new file mode 100644 index 0000000..cfef5ac --- /dev/null +++ b/functions/search.html @@ -0,0 +1,149 @@ +search | extra-entries
+
+ +
+
+
+
+ +

Function search

+
+
    + +
  • +

    Finds key of an entry passing a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns K

    key of entry

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/searchAll.html b/functions/searchAll.html new file mode 100644 index 0000000..4a5c8d8 --- /dev/null +++ b/functions/searchAll.html @@ -0,0 +1,149 @@ +searchAll | extra-entries
+
+ +
+
+
+
+ +

Function searchAll

+
+
    + +
  • +

    Find keys of entries passing a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Iterable<K>

    keys of entries

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/searchValue.html b/functions/searchValue.html new file mode 100644 index 0000000..0e19da2 --- /dev/null +++ b/functions/searchValue.html @@ -0,0 +1,161 @@ +searchValue | extra-entries
+
+ +
+
+
+
+ +

Function searchValue

+
+
    + +
  • +

    Find a key with given value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      v: V
      +

      search value

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns K

    key of value

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/searchValueAll.html b/functions/searchValueAll.html new file mode 100644 index 0000000..68ecd68 --- /dev/null +++ b/functions/searchValueAll.html @@ -0,0 +1,161 @@ +searchValueAll | extra-entries
+
+ +
+
+
+
+ +

Function searchValueAll

+
+
    + +
  • +

    Find keys with given value.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      v: V
      +

      search value

      +
      +
    • +
    • +
      fc: CompareFunction<V | W> = null
      +

      compare function (a, b)

      +
      +
    • +
    • +
      fm: MapFunction<K, V, V | W> = null
      +

      map function (v, k, x)

      +
      +
    +

    Returns Iterable<K>

    keys of value

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/set.html b/functions/set.html new file mode 100644 index 0000000..9c9e3a3 --- /dev/null +++ b/functions/set.html @@ -0,0 +1,154 @@ +set | extra-entries
+
+ +
+
+
+
+ +

Function set

+
+
    + +
  • +

    Set value at key.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      k: K
      +

      key

      +
      +
    • +
    • +
      v: V
      +

      value

      +
      +
    +

    Returns Entries<K, V>

    x' | x' = x; x'[k] = v

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/size.html b/functions/size.html new file mode 100644 index 0000000..50966ea --- /dev/null +++ b/functions/size.html @@ -0,0 +1,153 @@ +size | extra-entries
+
+ +
+
+
+
+ +

Function size

+
+
    + +
  • +

    Find the length of an iterable. +📘

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    +
    +

    Parameters

    +
      +
    • +
      x: Iterable<T>
      +

      an iterable

      +
      +
    • +
    • +
      Optional i: number
      +

      start index [0]

      +
      +
    • +
    • +
      Optional I: number
      +

      end index [END]

      +
      +
    +

    Returns number

    |x[i..I]|

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/some.html b/functions/some.html new file mode 100644 index 0000000..f72d044 --- /dev/null +++ b/functions/some.html @@ -0,0 +1,149 @@ +some | extra-entries
+
+ +
+
+
+
+ +

Function some

+
+
    + +
  • +

    Check if any value satisfies a test.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns boolean

    true if ft(vᵢ) = true for some [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/subsets.html b/functions/subsets.html new file mode 100644 index 0000000..2488e05 --- /dev/null +++ b/functions/subsets.html @@ -0,0 +1,149 @@ +subsets | extra-entries
+
+ +
+
+
+
+ +

Function subsets

+
+
    + +
  • +

    List all possible subsets.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      n: number = -1
      +

      number of entries in each subset [-1 ⇒ any]

      +
      +
    +

    Returns Iterable<Entries<K, V>>

    entries selected by bit from 0..2^|x| if n<0; only of length n otherwise

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/swap.html b/functions/swap.html new file mode 100644 index 0000000..5f08c4e --- /dev/null +++ b/functions/swap.html @@ -0,0 +1,154 @@ +swap | extra-entries
+
+ +
+
+
+
+ +

Function swap

+
+
    + +
  • +

    Exchange two values.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      k: K
      +

      a key

      +
      +
    • +
    • +
      l: K
      +

      another key

      +
      +
    +

    Returns Entries<K, V>

    x' | x' = x; x'[k] = x[l]; x'[l] = x[k]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/symmetricDifference.html b/functions/symmetricDifference.html new file mode 100644 index 0000000..83d225b --- /dev/null +++ b/functions/symmetricDifference.html @@ -0,0 +1,149 @@ +symmetricDifference | extra-entries
+
+ +
+
+
+
+ +

Function symmetricDifference

+
+
    + +
  • +

    Obtain entries not present in both entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      x: Entries<K, V>
      +

      entries

      +
      +
    • +
    • +
      y: Entries<K, V>
      +

      another entries

      +
      +
    +

    Returns Entries<K, V>

    x = x-y ∪ y-x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/tail.html b/functions/tail.html new file mode 100644 index 0000000..63bf2e8 --- /dev/null +++ b/functions/tail.html @@ -0,0 +1,143 @@ +tail | extra-entries
+
+ +
+
+
+
+ +

Function tail

+
+
    + +
  • +

    Get values except first. +📘

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    +
    +

    Parameters

    +
      +
    • +
      x: Iterable<T>
      +

      an iterable

      +
      +
    +

    Returns IterableIterator<T>

    x[1..|x|]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/take.html b/functions/take.html new file mode 100644 index 0000000..9b31171 --- /dev/null +++ b/functions/take.html @@ -0,0 +1,148 @@ +take | extra-entries
+
+ +
+
+
+
+ +

Function take

+
+
    + +
  • +

    Keep first n values only. +📘

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    +
    +

    Parameters

    +
      +
    • +
      x: Iterable<T>
      +

      an iterable

      +
      +
    • +
    • +
      Optional n: number
      +

      number of values [1]

      +
      +
    +

    Returns IterableIterator<T>

    x[0..n]

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/union.html b/functions/union.html new file mode 100644 index 0000000..9f8b13c --- /dev/null +++ b/functions/union.html @@ -0,0 +1,154 @@ +union | extra-entries
+
+ +
+
+
+
+ +

Function union

+
+
    + +
  • +

    Obtain entries present in any entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Entries<K, V>

    x ∪ y = {[kᵢ, vᵢ] | [kᵢ, vᵢ] ∈ x or [kᵢ, vᵢ] ∈ y}

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/unionKeys.html b/functions/unionKeys.html new file mode 100644 index 0000000..f6dd6eb --- /dev/null +++ b/functions/unionKeys.html @@ -0,0 +1,144 @@ +unionKeys | extra-entries
+
+ +
+
+
+
+ +

Function unionKeys

+
+
    + +
  • +

    Obtain keys present in any entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
      +
    • +
      Rest ...xs: Entries<K, V>[]
      +

      all entries

      +
      +
    +

    Returns Set<K>

    {k₀, k₁, ...} | [kᵢ, vᵢ] ∈ x₀ ∪ x₁, ...; [x₀, x₁, ...] = xs

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/values.html b/functions/values.html new file mode 100644 index 0000000..6644326 --- /dev/null +++ b/functions/values.html @@ -0,0 +1,144 @@ +values | extra-entries
+
+ +
+
+
+
+ +

Function values

+
+
    + +
  • +

    List all values.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    +
    +

    Parameters

    +
    +

    Returns Iterable<V>

    v₀, v₁, ... | [kᵢ, vᵢ] ∈ x

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/zip.html b/functions/zip.html new file mode 100644 index 0000000..31bb320 --- /dev/null +++ b/functions/zip.html @@ -0,0 +1,161 @@ +zip | extra-entries
+
+ +
+
+
+
+ +

Function zip

+
+
    + +
  • +

    Combine matching entries from all entries.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      K

    • +
    • +

      V

    • +
    • +

      W = V

    +
    +

    Parameters

    +
      +
    • +
      xs: Entries<K, V>[]
      +

      all entries

      +
      +
    • +
    • +
      fm: MapFunction<K, V[], W | V[]> = null
      +

      map function (vs, k)

      +
      +
    • +
    • +
      ft: EndFunction = null
      +

      end function (dones) [some]

      +
      +
    • +
    • +
      Optional vd: V
      +

      default value

      +
      +
    +

    Returns Entries<K, V[] | W>

    fm([x₀[k₀], x₁[k₀], ...]), fm([x₀[k₁], x₁[k₁], ...]), ...

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..260aa10 --- /dev/null +++ b/index.html @@ -0,0 +1,479 @@ +extra-entries
+
+ +
+
+
+
+

extra-entries

+

A collection of functions for operating upon Entries.
+📦 Node.js, +🌐 Web, +📜 Files, +📰 Docs, +📘 Wiki.

+

Entries is a list of key-value pairs, with unique keys. This package +includes common functions related to querying about entries, generating +them, comparing one with another, finding their size, adding and +removing entries, obtaining its properties, getting a part of it, +getting a subset entries in it, finding an entry in it, performing +functional operations, manipulating it in various ways, combining +together entries or its sub-entries, of performing set operations upon it.

+

All functions except fromLists() take entries as 1st parameter, and expect it +to be iterable. It does not need to be an array. Entries are returned +by Array, Object, Set, Map.

+

This package is available in Node.js and Web formats. The web format +is exposed as extra_entries standalone variable and can be loaded from +jsDelivr CDN.

+
+

Stability: Experimental.

+
+
+ +
const entries = require('extra-entries');
// import * as entries from "extra-entries";
// import * as entries from "https://unpkg.com/extra-entries/index.mjs"; (deno)

var x = [['a', 1], ['b', 2], ['c', 3], ['d', 4], ['e', 5]];
[...entries.filter(x, v => v % 2 === 1)];
// → [ [ 'a', 1 ], [ 'c', 3 ], [ 'e', 5 ] ]

var x = [['a', 1], ['b', 2], ['c', -3], ['d', -4]];
entries.some(x, v => v > 10);
// → false

var x = [['a', 1], ['b', 2], ['c', -3], ['d', -4]];
entries.min(x);
// → -4

var x = [['a', 1], ['b', 2], ['c', 3]];
[...entries.subsets(x)].map(a => [...a]);
// → [
// → [],
// → [ [ 'a', 1 ] ],
// → [ [ 'b', 2 ] ],
// → [ [ 'a', 1 ], [ 'b', 2 ] ],
// → [ [ 'c', 3 ] ],
// → [ [ 'a', 1 ], [ 'c', 3 ] ],
// → [ [ 'b', 2 ], [ 'c', 3 ] ],
// → [ [ 'a', 1 ], [ 'b', 2 ], [ 'c', 3 ] ]
// → ] +
+
+
+ + +

Index

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyDescription
isCheck if value is an iterable.
keysList all keys.
valuesList all values.
fromListsConvert lists to entries.
compareCompare two entries.
isEqualCheck if two entries are equal.
sizeFind the length of an iterable.
isEmptyCheck if an iterable is empty.
getGet value at key.
getAllGet values at keys.
getPathGet value at path in nested entries.
hasPathCheck if nested entries has a path.
setSet value at key.
swapExchange two values.
removeRemove value at key.
countCount values which satisfy a test.
countAsCount occurrences of values.
minFind smallest value.
minEntryFind smallest entry.
maxFind largest value.
maxEntryFind largest entry.
rangeFind smallest and largest values.
rangeEntriesFind smallest and largest entries.
headGet first value.
tailGet values except first.
takeKeep first n values only.
dropDiscard first n values only.
subsetsList all possible subsets.
randomKeyPick an arbitrary key.
randomEntryPick an arbitrary entry.
randomSubsetPick an arbitrary subset.
hasCheck if entries has a key.
hasValueCheck if entries has a value.
hasEntryCheck if entries has an entry.
hasSubsetCheck if entries has a subset.
findFind first value passing a test (default order).
findAllFind values passing a test.
searchFinds key of an entry passing a test.
searchAllFind keys of entries passing a test.
searchValueFind a key with given value.
searchValueAllFinds keys with given value.
forEachCall a function for each value.
someCheck if any value satisfies a test.
everyCheck if all values satisfy a test.
mapTransform values of entries.
reduceReduce values of entries to a single value.
filterKeep entries which pass a test.
filterAtKeep entries with given keys.
rejectDiscard entries which pass a test.
rejectAtDiscard entries with given keys.
flatFlatten nested entries to given depth.
flatMapFlatten nested entries, based on map function.
zipCombine matching entries from all entries.
partitionSegregate values by test result.
partitionAsSegregate entries by similarity.
chunkBreak entries into chunks of given size.
concatAppend entries from all entries, preferring last.
joinJoin entries together into a string.
isDisjointCheck if entries have no common keys.
unionKeysObtain keys present in any entries.
unionObtain entries present in any entries.
intersectionObtain entries present in both entries.
differenceObtain entries not present in another entries.
symmetricDifferenceObtain entries not present in both entries.
randomValuePick an arbitrary value.
+
+
+ + +


+ORG +DOI +Coverage Status +Test Coverage +Maintainability

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/modules.html b/modules.html new file mode 100644 index 0000000..6581977 --- /dev/null +++ b/modules.html @@ -0,0 +1,230 @@ +extra-entries
+
+ +
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/CombineFunction.html b/types/CombineFunction.html new file mode 100644 index 0000000..7ca9580 --- /dev/null +++ b/types/CombineFunction.html @@ -0,0 +1,151 @@ +CombineFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias CombineFunction<V>

+
CombineFunction<V>: ((a, b) => V)
+
+

Type Parameters

+
    +
  • +

    V

+
+

Type declaration

+
    +
  • +
      +
    • (a, b): V
    • +
    • +

      Handle combining of two values.

      +
      +
      +

      Parameters

      +
        +
      • +
        a: V
        +

        a value

        +
        +
      • +
      • +
        b: V
        +

        another value

        +
        +
      +

      Returns V

      combined value

      + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/CompareFunction.html b/types/CompareFunction.html new file mode 100644 index 0000000..e4aa3ce --- /dev/null +++ b/types/CompareFunction.html @@ -0,0 +1,151 @@ +CompareFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias CompareFunction<V>

+
CompareFunction<V>: ((a, b) => number)
+
+

Type Parameters

+
    +
  • +

    V

+
+

Type declaration

+
    +
  • +
      +
    • (a, b): number
    • +
    • +

      Handle comparison of two values.

      +
      +
      +

      Parameters

      +
        +
      • +
        a: V
        +

        a value

        +
        +
      • +
      • +
        b: V
        +

        another value

        +
        +
      +

      Returns number

      a<b: -ve, a=b: 0, a>b: +ve

      + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/EndFunction.html b/types/EndFunction.html new file mode 100644 index 0000000..f6347cb --- /dev/null +++ b/types/EndFunction.html @@ -0,0 +1,141 @@ +EndFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias EndFunction

+
EndFunction: ((dones) => boolean)
+
+

Type declaration

+
    +
  • +
      +
    • (dones): boolean
    • +
    • +

      Handle ending of combined entries.

      +
      +
      +

      Parameters

      +
        +
      • +
        dones: boolean[]
        +

        iᵗʰ entries done?

        +
        +
      +

      Returns boolean

      combined entries done?

      + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/Entries.html b/types/Entries.html new file mode 100644 index 0000000..60feadd --- /dev/null +++ b/types/Entries.html @@ -0,0 +1,131 @@ +Entries | extra-entries
+
+ +
+
+
+
+ +

Type alias Entries<K, V>

+
Entries<K, V>: Iterable<[K, V]>
+

Entries is a list of key-value pairs, with unique keys.

+
+
+

Type Parameters

+
    +
  • +

    K

  • +
  • +

    V

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/Lists.html b/types/Lists.html new file mode 100644 index 0000000..7d0b733 --- /dev/null +++ b/types/Lists.html @@ -0,0 +1,131 @@ +Lists | extra-entries
+
+ +
+
+
+
+ +

Type alias Lists<K, V>

+
Lists<K, V>: [Iterable<K>, Iterable<V>]
+

Lists is a pair of key list and value list, with unique keys.

+
+
+

Type Parameters

+
    +
  • +

    K

  • +
  • +

    V

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/MapFunction.html b/types/MapFunction.html new file mode 100644 index 0000000..2a5beb8 --- /dev/null +++ b/types/MapFunction.html @@ -0,0 +1,160 @@ +MapFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias MapFunction<K, V, W>

+
MapFunction<K, V, W>: ((v, k, x) => W)
+
+

Type Parameters

+
    +
  • +

    K

  • +
  • +

    V

  • +
  • +

    W

+
+

Type declaration

+
    +
  • +
      +
    • (v, k, x): W
    • +
    • +

      Handle transformation of a value to another.

      +
      +
      +

      Parameters

      +
        +
      • +
        v: V
        +

        value in entries

        +
        +
      • +
      • +
        k: K
        +

        key of value in entries

        +
        +
      • +
      • +
        x: Entries<K, V>
        +

        entries containing the value

        +
        +
      +

      Returns W

      transformed value

      + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ProcessFunction.html b/types/ProcessFunction.html new file mode 100644 index 0000000..33d174a --- /dev/null +++ b/types/ProcessFunction.html @@ -0,0 +1,157 @@ +ProcessFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias ProcessFunction<K, V>

+
ProcessFunction<K, V>: ((v, k, x) => void)
+
+

Type Parameters

+
    +
  • +

    K

  • +
  • +

    V

+
+

Type declaration

+
    +
  • +
      +
    • (v, k, x): void
    • +
    • +

      Handle processing of values in entries.

      +
      +
      +

      Parameters

      +
        +
      • +
        v: V
        +

        value in entries

        +
        +
      • +
      • +
        k: K
        +

        key of value in entries

        +
        +
      • +
      • +
        x: Entries<K, V>
        +

        entries containing the value

        +
        +
      +

      Returns void

      +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ReadFunction.html b/types/ReadFunction.html new file mode 100644 index 0000000..32e5955 --- /dev/null +++ b/types/ReadFunction.html @@ -0,0 +1,138 @@ +ReadFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias ReadFunction<V>

+
ReadFunction<V>: (() => V)
+
+

Type Parameters

+
    +
  • +

    V

+
+

Type declaration

+
    +
  • +
      +
    • (): V
    • +
    • +

      Handle reading of a single value.

      +
      +

      Returns V

      value

      + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ReduceFunction.html b/types/ReduceFunction.html new file mode 100644 index 0000000..ead367e --- /dev/null +++ b/types/ReduceFunction.html @@ -0,0 +1,165 @@ +ReduceFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias ReduceFunction<K, V, W>

+
ReduceFunction<K, V, W>: ((acc, v, k, x) => W)
+
+

Type Parameters

+
    +
  • +

    K

  • +
  • +

    V

  • +
  • +

    W

+
+

Type declaration

+
    +
  • +
      +
    • (acc, v, k, x): W
    • +
    • +

      Handle reduction of multiple values into a single value.

      +
      +
      +

      Parameters

      +
        +
      • +
        acc: W
        +

        accumulator (temporary result)

        +
        +
      • +
      • +
        v: V
        +

        value in entries

        +
        +
      • +
      • +
        k: K
        +

        key of value in entries

        +
        +
      • +
      • +
        x: Entries<K, V>
        +

        entries containing the value

        +
        +
      +

      Returns W

      reduced value

      + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/TestFunction.html b/types/TestFunction.html new file mode 100644 index 0000000..9887c5b --- /dev/null +++ b/types/TestFunction.html @@ -0,0 +1,158 @@ +TestFunction | extra-entries
+
+ +
+
+
+
+ +

Type alias TestFunction<K, V>

+
TestFunction<K, V>: ((v, k, x) => boolean)
+
+

Type Parameters

+
    +
  • +

    K

  • +
  • +

    V

+
+

Type declaration

+
    +
  • +
      +
    • (v, k, x): boolean
    • +
    • +

      Handle selection of values in entries.

      +
      +
      +

      Parameters

      +
        +
      • +
        v: V
        +

        value in entries

        +
        +
      • +
      • +
        k: K
        +

        key of value in entries

        +
        +
      • +
      • +
        x: Entries<K, V>
        +

        entries containing the value

        +
        +
      +

      Returns boolean

      selected?

      + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file