1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3050],{11179:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>s,default:()=>u,frontMatter:()=>c,metadata:()=>l,toc:()=>a});var r=n(85893),i=n(11151);const c={sidebar_position:8,description:"Reconstruct a table-like content with new children.",toc_max_heading_level:2},s="reconstruct-table-like",l={id:"reference/utils/reconstruct-table-like",title:"reconstruct-table-like",description:"Reconstruct a table-like content with new children.",source:"@site/docs/reference/utils/reconstruct-table-like.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/reconstruct-table-like",permalink:"/docs/reference/utils/reconstruct-table-like",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,description:"Reconstruct a table-like content with new children.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"reconstruct",permalink:"/docs/reference/utils/reconstruct"},next:{title:"is-sequence",permalink:"/docs/reference/utils/is-sequence"}},o={},a=[{value:"named : <TypeLink></TypeLink> <Default><code>true</code></Default>",id:"named",level:3},{value:"labeled : <TypeLink></TypeLink> <Default><code>true</code></Default>",id:"labeled",level:3},{value:"it : <TypeLink></TypeLink>",id:"it",level:3},{value:"new-children : <TypeLink></TypeLink>",id:"new-children",level:3}];function d(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,i.a)(),...e.components},{Default:n,Param:c,Parameters:s,Signature:l,SignatureName:o,SignatureParam:a,SourceLink:d,TypeLink:u}=t;return n||h("Default",!0),c||h("Param",!0),s||h("Parameters",!0),l||h("Signature",!0),o||h("SignatureName",!0),a||h("SignatureParam",!0),d||h("SourceLink",!0),u||h("TypeLink",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"reconstruct-table-like",children:"reconstruct-table-like"}),"\n",(0,r.jsx)(l,{children:(0,r.jsxs)("code",{children:[(0,r.jsx)(o,{children:"reconstruct-table-like"}),"(",(0,r.jsxs)(a,{children:[(0,r.jsx)(t.a,{href:"#named",children:"named: true"}),", "]}),(0,r.jsxs)(a,{children:[(0,r.jsx)(t.a,{href:"#labeled",children:"labeled: true"}),", "]}),(0,r.jsxs)(a,{children:[(0,r.jsx)(t.a,{href:"#it",children:"it"}),", "]}),(0,r.jsx)(a,{children:(0,r.jsx)(t.a,{href:"#new-children",children:"new-children"})}),")",(0,r.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L227"})]})}),"\n",(0,r.jsx)(t.p,{children:"Reconstruct a table-like content with new children."}),"\n",(0,r.jsxs)(s,{children:[(0,r.jsxs)(t.h3,{id:"named",children:["named : ",(0,r.jsx)(u,{type:"bool"})," ",(0,r.jsx)(n,{children:(0,r.jsx)(t.code,{children:"true"})})]}),(0,r.jsx)(c,{children:(0,r.jsxs)(t.p,{children:["Whether to pass fields as named arguments. Default is ",(0,r.jsx)(t.code,{children:"true"}),"."]})}),(0,r.jsxs)(t.h3,{id:"labeled",children:["labeled : ",(0,r.jsx)(u,{type:"bool"})," ",(0,r.jsx)(n,{children:(0,r.jsx)(t.code,{children:"true"})})]}),(0,r.jsx)(c,{children:(0,r.jsxs)(t.p,{children:["Whether to preserve the label of the content. Default is ",(0,r.jsx)(t.code,{children:"true"}),"."]})}),(0,r.jsxs)(t.h3,{id:"it",children:["it : ",(0,r.jsx)(u,{type:"content"})]}),(0,r.jsx)(c,{children:(0,r.jsx)(t.p,{children:"The content to reconstruct."})}),(0,r.jsxs)(t.h3,{id:"new-children",children:["new-children : ",(0,r.jsx)(u,{type:"array"})]}),(0,r.jsx)(c,{children:(0,r.jsx)(t.p,{children:"The new children to replace the old children with."})})]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Returns:"})," ",(0,r.jsx)(u,{type:"content"})]})]})}function u(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}function h(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>s});var r=n(67294);const i={},c=r.createContext(i);function s(e){const t=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(c.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.