From a3fe08e73c93d120c7f1aa8390ad0615feb92ffb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 01:39:03 +0000 Subject: [PATCH] deploy: 0a22acf27575a0216d7412e998e88b785b15902d --- 404.html | 2 +- assets/js/{428581d6.90801fd9.js => 428581d6.d1692b91.js} | 2 +- .../js/{runtime~main.34611ac6.js => runtime~main.966c30b3.js} | 2 +- docs/add/index.html | 2 +- docs/always/index.html | 2 +- docs/append/index.html | 2 +- docs/apply/index.html | 2 +- docs/average/index.html | 2 +- docs/chunk/index.html | 2 +- docs/compact/index.html | 2 +- docs/compactObject/index.html | 2 +- docs/compress/index.html | 2 +- docs/concat/index.html | 2 +- docs/concurrent/index.html | 2 +- docs/consume/index.html | 2 +- docs/countBy/index.html | 2 +- docs/curry/index.html | 2 +- docs/cycle/index.html | 2 +- docs/delay/index.html | 2 +- docs/difference/index.html | 2 +- docs/differenceBy/index.html | 2 +- docs/drop/index.html | 2 +- docs/dropRight/index.html | 2 +- docs/dropUntil/index.html | 2 +- docs/dropWhile/index.html | 2 +- docs/each/index.html | 2 +- docs/entries/index.html | 2 +- docs/error-handling/index.html | 2 +- docs/every/index.html | 2 +- docs/evolve/index.html | 2 +- docs/filter/index.html | 2 +- docs/find/index.html | 2 +- docs/findIndex/index.html | 2 +- docs/flat/index.html | 2 +- docs/flatMap/index.html | 2 +- docs/fromEntries/index.html | 2 +- docs/function-composition/index.html | 2 +- docs/fx/index.html | 4 ++-- docs/getting-started/index.html | 2 +- docs/groupBy/index.html | 2 +- docs/gt/index.html | 2 +- docs/gte/index.html | 2 +- docs/handle-concurrency/index.html | 2 +- docs/head/index.html | 2 +- docs/how-to-debug/index.html | 2 +- docs/identity/index.html | 2 +- docs/includes/index.html | 2 +- docs/index.html | 2 +- docs/indexBy/index.html | 2 +- docs/intersection/index.html | 2 +- docs/intersectionBy/index.html | 2 +- docs/isArray/index.html | 2 +- docs/isBoolean/index.html | 2 +- docs/isEmpty/index.html | 2 +- docs/isNil/index.html | 2 +- docs/isNull/index.html | 2 +- docs/isNumber/index.html | 2 +- docs/isObject/index.html | 2 +- docs/isString/index.html | 2 +- docs/isUndefined/index.html | 2 +- docs/join/index.html | 2 +- docs/juxt/index.html | 2 +- docs/keys/index.html | 2 +- docs/last/index.html | 2 +- docs/lazy-evaluation/index.html | 2 +- docs/lt/index.html | 2 +- docs/lte/index.html | 2 +- docs/map/index.html | 2 +- docs/max/index.html | 2 +- docs/memoize/index.html | 2 +- docs/method-chaining/index.html | 2 +- docs/min/index.html | 2 +- docs/negate/index.html | 2 +- docs/noop/index.html | 2 +- docs/not/index.html | 2 +- docs/nth/index.html | 2 +- docs/omit/index.html | 2 +- docs/omitBy/index.html | 2 +- docs/partition/index.html | 2 +- docs/peek/index.html | 2 +- docs/pick/index.html | 2 +- docs/pickBy/index.html | 2 +- docs/pipe/index.html | 2 +- docs/pipeLazy/index.html | 2 +- docs/pluck/index.html | 2 +- docs/prepend/index.html | 2 +- docs/prop/index.html | 2 +- docs/props/index.html | 2 +- docs/range/index.html | 2 +- docs/reduce/index.html | 2 +- docs/reduceLazy/index.html | 2 +- docs/reject/index.html | 2 +- docs/repeat/index.html | 2 +- docs/reverse/index.html | 2 +- docs/scan/index.html | 2 +- docs/size/index.html | 2 +- docs/slice/index.html | 2 +- docs/some/index.html | 2 +- docs/sort/index.html | 2 +- docs/sortBy/index.html | 2 +- docs/split/index.html | 2 +- docs/sum/index.html | 2 +- docs/take/index.html | 2 +- docs/takeRight/index.html | 2 +- docs/takeUntil/index.html | 2 +- docs/takeWhile/index.html | 2 +- docs/tap/index.html | 2 +- docs/throwError/index.html | 2 +- docs/throwIf/index.html | 2 +- docs/to-async/index.html | 2 +- docs/toArray/index.html | 2 +- docs/toAsync/index.html | 2 +- docs/unicodeToArray/index.html | 2 +- docs/uniq/index.html | 2 +- docs/uniqBy/index.html | 2 +- docs/unless/index.html | 2 +- docs/values/index.html | 2 +- docs/zip/index.html | 2 +- docs/zipWith/index.html | 2 +- docs/zipWithIndex/index.html | 2 +- index.html | 2 +- search/index.html | 2 +- 122 files changed, 123 insertions(+), 123 deletions(-) rename assets/js/{428581d6.90801fd9.js => 428581d6.d1692b91.js} (78%) rename assets/js/{runtime~main.34611ac6.js => runtime~main.966c30b3.js} (99%) diff --git a/404.html b/404.html index a34490ee..447c5907 100644 --- a/404.html +++ b/404.html @@ -12,7 +12,7 @@ - +
diff --git a/assets/js/428581d6.90801fd9.js b/assets/js/428581d6.d1692b91.js similarity index 78% rename from assets/js/428581d6.90801fd9.js rename to assets/js/428581d6.d1692b91.js index e66fbc9b..eb5bd682 100644 --- a/assets/js/428581d6.90801fd9.js +++ b/assets/js/428581d6.d1692b91.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7959],{2726:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>o,default:()=>f,frontMatter:()=>s,metadata:()=>c,toc:()=>d});var r=t(4848),a=t(8453);const s={id:"fx"},o=void 0,c={id:"fx",title:"fx",description:"fx() function",source:"@site/docs/fx.md",sourceDirName:".",slug:"/fx",permalink:"/docs/fx",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{id:"fx"},sidebar:"api",previous:{title:"flatMap",permalink:"/docs/flatMap"},next:{title:"intersection",permalink:"/docs/intersection"}},i={},d=[{value:"fx() function",id:"fx-function",level:2},{value:"Example",id:"example",level:2}];function l(n){const e={a:"a",code:"code",h2:"h2",p:"p",pre:"pre",...(0,a.R)(),...n.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h2,{id:"fx-function",children:"fx() function"}),"\n",(0,r.jsxs)(e.p,{children:[(0,r.jsx)(e.code,{children:"fx"})," allows functions provided by existing ",(0,r.jsx)(e.code,{children:"fxts"})," to be used in a method chaining. Not all functions are provided as methods and can be connected through ",(0,r.jsx)(e.code,{children:"chain"})," if necessary."]}),"\n",(0,r.jsxs)(e.p,{children:["see ",(0,r.jsx)(e.a,{href:"https://fxts.dev/docs/method-chaining",children:"guide"})]}),"\n",(0,r.jsx)("b",{children:"Signature:"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-typescript",children:"declare function fxdeclare function fx<T extends Iterable<unknown> | AsyncIterable<unknown>>(a: T): T extends Iterable<unknown> ? FxIterable<IterableInfer<T>> : FxAsyncIterable<IterableInfer<T>>;
const syncArr1 = fx([1, 2, 3, 4])
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14]
// If you want to use another function that is not provided for the method, use `chain`.
const syncArr2 = fx([1, 2, 3, 4])
.chain(append(5))
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14, 15]
const asyncArr1 = await fx([1, 2, 3, 4])
.toAsync()
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14]
const asyncArr2 = await fx(toAsync([1, 2, 3, 4]));
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14]
const syncArr1 = fx([1, 2, 3, 4])
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14]
// If you want to use another function that is not provided for the method, use `chain`.
const syncArr2 = fx([1, 2, 3, 4])
.chain(append(5))
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14, 15]
const asyncArr1 = await fx([1, 2, 3, 4])
.toAsync()
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14]
const asyncArr2 = await fx(toAsync([1, 2, 3, 4]))
.map((a) => a + 10)
.toArray(); // [11, 12, 13, 14]