[{"data":1,"prerenderedAt":3380,"buildId":3381},["ShallowReactive",2],{"navigation_docs":3,"page-\u002Fswift\u002Fadvanced\u002Fclosures":1652,"surround-\u002Fswift\u002Fadvanced\u002Fclosures":3377},[4,176,404,671,747,926,1080,1148,1213,1304,1418,1519],{"title":5,"icon":6,"headerIcon":7,"summary":8,"tagline":9,"path":10,"stem":11,"children":12,"page":27},"Alpine.js","i-custom-alpinejs","i-simple-icons-alpinedotjs","Alpine is a rugged, minimal tool for composing behavior directly in your markup.","Lightweight behavior in your HTML","\u002Falpinejs","alpinejs",[13,28,98,140,158],{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":27},"Getting Started","i-lucide-rocket","\u002Falpinejs\u002Fgetting-started","alpinejs\u002F010.getting-started",[19,23],{"title":20,"path":21,"stem":22},"Introduction","\u002Falpinejs\u002Fgetting-started\u002Fintroduction","alpinejs\u002F010.getting-started\u002F010.introduction",{"title":24,"path":25,"stem":26},"Installation","\u002Falpinejs\u002Fgetting-started\u002Finstallation","alpinejs\u002F010.getting-started\u002F020.installation",false,{"title":29,"icon":30,"path":31,"stem":32,"children":33,"page":27},"Directives","i-lucide-code-xml","\u002Falpinejs\u002Fdirectives","alpinejs\u002F020.directives",[34,38,42,46,50,54,58,62,66,70,74,78,82,86,90,94],{"title":35,"path":36,"stem":37},"x-data","\u002Falpinejs\u002Fdirectives\u002Fx-data","alpinejs\u002F020.directives\u002F010.x-data",{"title":39,"path":40,"stem":41},"x-text & x-html","\u002Falpinejs\u002Fdirectives\u002Fx-text-and-x-html","alpinejs\u002F020.directives\u002F020.x-text-and-x-html",{"title":43,"path":44,"stem":45},"x-init","\u002Falpinejs\u002Fdirectives\u002Fx-init","alpinejs\u002F020.directives\u002F030.x-init",{"title":47,"path":48,"stem":49},"x-show","\u002Falpinejs\u002Fdirectives\u002Fx-show","alpinejs\u002F020.directives\u002F040.x-show",{"title":51,"path":52,"stem":53},"x-if & \u003Ctemplate> tag","\u002Falpinejs\u002Fdirectives\u002Fx-if-and-template-tag","alpinejs\u002F020.directives\u002F050.x-if-and-template-tag",{"title":55,"path":56,"stem":57},"x-cloak","\u002Falpinejs\u002Fdirectives\u002Fx-cloak","alpinejs\u002F020.directives\u002F060.x-cloak",{"title":59,"path":60,"stem":61},"x-on","\u002Falpinejs\u002Fdirectives\u002Fx-on","alpinejs\u002F020.directives\u002F070.x-on",{"title":63,"path":64,"stem":65},"x-for","\u002Falpinejs\u002Fdirectives\u002Fx-for","alpinejs\u002F020.directives\u002F080.x-for",{"title":67,"path":68,"stem":69},"x-bind","\u002Falpinejs\u002Fdirectives\u002Fx-bind","alpinejs\u002F020.directives\u002F090.x-bind",{"title":71,"path":72,"stem":73},"x-model & x-modelable","\u002Falpinejs\u002Fdirectives\u002Fx-model-and-x-modelable","alpinejs\u002F020.directives\u002F100.x-model-and-x-modelable",{"title":75,"path":76,"stem":77},"x-transition","\u002Falpinejs\u002Fdirectives\u002Fx-transition","alpinejs\u002F020.directives\u002F110.x-transition",{"title":79,"path":80,"stem":81},"x-effect","\u002Falpinejs\u002Fdirectives\u002Fx-effect","alpinejs\u002F020.directives\u002F120.x-effect",{"title":83,"path":84,"stem":85},"x-ignore","\u002Falpinejs\u002Fdirectives\u002Fx-ignore","alpinejs\u002F020.directives\u002F130.x-ignore",{"title":87,"path":88,"stem":89},"x-ref","\u002Falpinejs\u002Fdirectives\u002Fx-ref","alpinejs\u002F020.directives\u002F140.x-ref",{"title":91,"path":92,"stem":93},"x-teleport","\u002Falpinejs\u002Fdirectives\u002Fx-teleport","alpinejs\u002F020.directives\u002F150.x-teleport",{"title":95,"path":96,"stem":97},"x-id","\u002Falpinejs\u002Fdirectives\u002Fx-id","alpinejs\u002F020.directives\u002F160.x-id",{"title":99,"icon":100,"path":101,"stem":102,"children":103,"page":27},"Magics","i-lucide-wand-sparkles","\u002Falpinejs\u002Fmagics","alpinejs\u002F030.magics",[104,108,112,116,120,124,128,132,136],{"title":105,"path":106,"stem":107},"$id","\u002Falpinejs\u002Fmagics\u002Fid","alpinejs\u002F030.magics\u002F010.id",{"title":109,"path":110,"stem":111},"$data","\u002Falpinejs\u002Fmagics\u002Fdata","alpinejs\u002F030.magics\u002F020.data",{"title":113,"path":114,"stem":115},"$root & $el","\u002Falpinejs\u002Fmagics\u002Froot-and-el","alpinejs\u002F030.magics\u002F030.root-and-el",{"title":117,"path":118,"stem":119},"$refs","\u002Falpinejs\u002Fmagics\u002Frefs","alpinejs\u002F030.magics\u002F040.refs",{"title":121,"path":122,"stem":123},"$event","\u002Falpinejs\u002Fmagics\u002Fevent","alpinejs\u002F030.magics\u002F050.event",{"title":125,"path":126,"stem":127},"$watch","\u002Falpinejs\u002Fmagics\u002Fwatch","alpinejs\u002F030.magics\u002F060.watch",{"title":129,"path":130,"stem":131},"$dispatch","\u002Falpinejs\u002Fmagics\u002Fdispatch","alpinejs\u002F030.magics\u002F070.dispatch",{"title":133,"path":134,"stem":135},"$nextTick","\u002Falpinejs\u002Fmagics\u002Fnext-tick","alpinejs\u002F030.magics\u002F080.next-tick",{"title":137,"path":138,"stem":139},"$store","\u002Falpinejs\u002Fmagics\u002Fstore","alpinejs\u002F030.magics\u002F090.store",{"title":141,"icon":142,"path":143,"stem":144,"children":145,"page":27},"Globals","i-lucide-globe","\u002Falpinejs\u002Fglobals","alpinejs\u002F040.globals",[146,150,154],{"title":147,"path":148,"stem":149},"Alpine.store()","\u002Falpinejs\u002Fglobals\u002Falpine-store","alpinejs\u002F040.globals\u002F010.alpine-store",{"title":151,"path":152,"stem":153},"Alpine.data()","\u002Falpinejs\u002Fglobals\u002Falpine-data","alpinejs\u002F040.globals\u002F020.alpine-data",{"title":155,"path":156,"stem":157},"Alpine.bind()","\u002Falpinejs\u002Fglobals\u002Falpine-bind","alpinejs\u002F040.globals\u002F030.alpine-bind",{"title":159,"icon":160,"path":161,"stem":162,"children":163,"page":27},"Appendix","i-lucide-book-marked","\u002Falpinejs\u002Fappendix","alpinejs\u002F050.appendix",[164,168,172],{"title":165,"path":166,"stem":167},"Version Info","\u002Falpinejs\u002Fappendix\u002Fversion","alpinejs\u002F050.appendix\u002F010.version",{"title":169,"path":170,"stem":171},"References","\u002Falpinejs\u002Fappendix\u002Freferences","alpinejs\u002F050.appendix\u002F020.references",{"title":173,"path":174,"stem":175},"Changes, Omissions and Additions","\u002Falpinejs\u002Fappendix\u002Fchanges","alpinejs\u002F050.appendix\u002F030.changes",{"title":177,"icon":178,"headerIcon":179,"summary":180,"tagline":181,"path":182,"stem":183,"children":184,"page":27},"Data Warehouse","i-custom-data-warehouse","i-custom-data-warehouse-mono","A central repository of integrated data from one or more disparate sources, used for reporting and data analysis.","Central store for analytics data","\u002Fdata-warehouse","data-warehouse",[185,192],{"title":14,"icon":15,"path":186,"stem":187,"children":188,"page":27},"\u002Fdata-warehouse\u002Fgetting-started","data-warehouse\u002F010.getting-started",[189],{"title":20,"path":190,"stem":191},"\u002Fdata-warehouse\u002Fgetting-started\u002Fintroduction","data-warehouse\u002F010.getting-started\u002F010.introduction",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":27},"Dimensional Modeling","i-lucide-box","\u002Fdata-warehouse\u002Fdimensional-modeling","data-warehouse\u002F020.dimensional-modeling",[198,201,250,318,363,367,371,375],{"title":20,"path":199,"stem":200},"\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fintroduction","data-warehouse\u002F020.dimensional-modeling\u002F010.introduction",{"title":202,"icon":203,"path":204,"stem":205,"children":206,"page":27},"Facts","i-lucide-hash","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts","data-warehouse\u002F020.dimensional-modeling\u002F020.facts",[207,210,214,218,222,226,230,234,238,242,246],{"title":20,"path":208,"stem":209},"\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Fintroduction","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F010.introduction",{"title":211,"path":212,"stem":213},"Fact Tables by Grain","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Ffacts-by-grain","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F020.facts-by-grain",{"title":215,"path":216,"stem":217},"Facts by Additivity","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Ffacts-by-additivity","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F030.facts-by-additivity",{"title":219,"path":220,"stem":221},"Facts by Representation","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Ffacts-by-representation","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F040.facts-by-representation",{"title":223,"path":224,"stem":225},"Factless Fact Tables","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Ffactless-fact","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F050.factless-fact",{"title":227,"path":228,"stem":229},"Consolidated Fact Tables","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Fconsolidated","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F060.consolidated",{"title":231,"path":232,"stem":233},"Centipede Fact Tables","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Fcentipede","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F070.centipede",{"title":235,"path":236,"stem":237},"Header\u002FLine Fact Tables","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Fheader-line","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F080.header-line",{"title":239,"path":240,"stem":241},"Supertype & Subtype Schemas","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Fsupertype-subtype","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F090.supertype-subtype",{"title":243,"path":244,"stem":245},"Error Event Schemas","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Ferror-event","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F100.error-event",{"title":247,"path":248,"stem":249},"Naming Conventions","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Ffacts\u002Fnaming","data-warehouse\u002F020.dimensional-modeling\u002F020.facts\u002F110.naming",{"title":251,"icon":252,"path":253,"stem":254,"children":255,"page":27},"Dimensions","i-lucide-axis-3d","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions",[256,259,263,267,271,275,279,283,287,291,295,299,303,307,311,315],{"title":20,"path":257,"stem":258},"\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fintroduction","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F010.introduction",{"title":260,"path":261,"stem":262},"Conformed & Shrunken Dimensions","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fconformed-shrunken","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F020.conformed-shrunken",{"title":264,"path":265,"stem":266},"Role-Playing Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Frole-playing","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F030.role-playing",{"title":268,"path":269,"stem":270},"Degenerate Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fdegenerate","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F040.degenerate",{"title":272,"path":273,"stem":274},"Junk Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fjunk","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F050.junk",{"title":276,"path":277,"stem":278},"Text Comments Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fcomments","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F060.comments",{"title":280,"path":281,"stem":282},"Multivalued Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fmultivalued","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F070.multivalued",{"title":284,"path":285,"stem":286},"Audit Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Faudit","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F080.audit",{"title":288,"path":289,"stem":290},"Step Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fstep","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F090.step",{"title":292,"path":293,"stem":294},"Hot Swappable Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fhot-swappable","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F100.hot-swappable",{"title":296,"path":297,"stem":298},"Dimension Hierarchies","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fhierarchies","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F110.hierarchies",{"title":300,"path":301,"stem":302},"Value Bands","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fvalue-bands","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F120.value-bands",{"title":304,"path":305,"stem":306},"Behavior Tags & Study Groups","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fbehavior","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F130.behavior",{"title":308,"path":309,"stem":310},"Dimension Anti-Patterns","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fanti-patterns","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F140.anti-patterns",{"title":312,"path":313,"stem":314},"Handling Missing Keys","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fmissing","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F150.missing",{"title":247,"path":316,"stem":317},"\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fdimensions\u002Fnaming","data-warehouse\u002F020.dimensional-modeling\u002F030.dimensions\u002F160.naming",{"title":319,"icon":320,"path":321,"stem":322,"children":323,"page":27},"Slowly Changing Dimensions","i-lucide-history","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd","data-warehouse\u002F020.dimensional-modeling\u002F040.scd",[324,327,331,335,339,343,347,351,355,359],{"title":20,"path":325,"stem":326},"\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Fintroduction","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F010.introduction",{"title":328,"path":329,"stem":330},"Type 0: Retain Original","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype0","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F020.type0",{"title":332,"path":333,"stem":334},"Type 1: Overwrite","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype1","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F030.type1",{"title":336,"path":337,"stem":338},"Type 2: Add New Row","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype2","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F040.type2",{"title":340,"path":341,"stem":342},"Type 3: Add New Attribute","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype3","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F050.type3",{"title":344,"path":345,"stem":346},"Type 4: Add Mini-Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype4","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F060.type4",{"title":348,"path":349,"stem":350},"Type 5: Add Mini-Dimension and Type 1 Outrigger","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype5","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F070.type5",{"title":352,"path":353,"stem":354},"Type 6: Add Type 1 Attributes to Type 2 Dimension","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype6","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F080.type6",{"title":356,"path":357,"stem":358},"Type 7: Dual Type 1 and Type 2 Dimensions","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Ftype7","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F090.type7",{"title":360,"path":361,"stem":362},"Pirate Dev's Recommendation","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fscd\u002Frecommendation","data-warehouse\u002F020.dimensional-modeling\u002F040.scd\u002F100.recommendation",{"title":364,"path":365,"stem":366},"Star Schema","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fstar-schema","data-warehouse\u002F020.dimensional-modeling\u002F050.star-schema",{"title":368,"path":369,"stem":370},"OLAP","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Folap","data-warehouse\u002F020.dimensional-modeling\u002F060.olap",{"title":372,"path":373,"stem":374},"Extensibility","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Fextensibility","data-warehouse\u002F020.dimensional-modeling\u002F070.extensibility",{"title":376,"icon":377,"path":378,"stem":379,"children":380,"page":27},"Architecture","i-lucide-network","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Farchitecture","data-warehouse\u002F020.dimensional-modeling\u002F080.architecture",[381,384,388,392,396,400],{"title":20,"path":382,"stem":383},"\u002Fdata-warehouse\u002Fdimensional-modeling\u002Farchitecture\u002Fintroduction","data-warehouse\u002F020.dimensional-modeling\u002F080.architecture\u002F010.introduction",{"title":385,"path":386,"stem":387},"Independent Data Mart Architecture","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Farchitecture\u002Findependent","data-warehouse\u002F020.dimensional-modeling\u002F080.architecture\u002F020.independent",{"title":389,"path":390,"stem":391},"Hub-and-Spoke CIF (Inmon Architecture)","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Farchitecture\u002Fhub-spoke-inmon","data-warehouse\u002F020.dimensional-modeling\u002F080.architecture\u002F030.hub-spoke-inmon",{"title":393,"path":394,"stem":395},"Kimball's DW\u002FBI Architecture","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Farchitecture\u002Fkimball","data-warehouse\u002F020.dimensional-modeling\u002F080.architecture\u002F040.kimball",{"title":397,"path":398,"stem":399},"Hybrid Hub-and-Spoke and Kimball Architecture","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Farchitecture\u002Fhybrid","data-warehouse\u002F020.dimensional-modeling\u002F080.architecture\u002F050.hybrid",{"title":401,"path":402,"stem":403},"Common Myths","\u002Fdata-warehouse\u002Fdimensional-modeling\u002Farchitecture\u002Fmyths","data-warehouse\u002F020.dimensional-modeling\u002F080.architecture\u002F060.myths",{"title":405,"icon":406,"headerIcon":407,"summary":408,"tagline":409,"path":410,"stem":411,"children":412,"page":27},"Django","i-vscode-icons-file-type-django","i-simple-icons-django","Django is a free and open-source Python-based web framework, that encourages rapid development and clean, pragmatic design.","Batteries-included Python web framework","\u002Fdjango","django",[413,428,476,510,528,554,604,614,643,657],{"title":414,"icon":415,"path":416,"stem":417,"children":418,"page":27},"First Steps","i-lucide-footprints","\u002Fdjango\u002Ffirst-steps","django\u002F010.first-steps",[419,422,425],{"title":20,"path":420,"stem":421},"\u002Fdjango\u002Ffirst-steps\u002Fintroduction","django\u002F010.first-steps\u002F010.introduction",{"title":24,"path":423,"stem":424},"\u002Fdjango\u002Ffirst-steps\u002Finstallation","django\u002F010.first-steps\u002F020.installation",{"title":14,"path":426,"stem":427},"\u002Fdjango\u002Ffirst-steps\u002Fgetting-started","django\u002F010.first-steps\u002F030.getting-started",{"title":429,"icon":430,"path":431,"stem":432,"children":433,"page":27},"The Model","i-lucide-database","\u002Fdjango\u002Fmodel","django\u002F020.model",[434,438,442,446,450,454,458,464,468,472],{"title":435,"path":436,"stem":437},"Models","\u002Fdjango\u002Fmodel\u002Fmodels","django\u002F020.model\u002F010.models",{"title":439,"path":440,"stem":441},"Fields and Relationships","\u002Fdjango\u002Fmodel\u002Ffields-and-relationships","django\u002F020.model\u002F020.fields-and-relationships",{"title":443,"path":444,"stem":445},"CRUD Operations","\u002Fdjango\u002Fmodel\u002Fcrud","django\u002F020.model\u002F030.crud",{"title":447,"path":448,"stem":449},"Migrations","\u002Fdjango\u002Fmodel\u002Fmigrations","django\u002F020.model\u002F040.migrations",{"title":451,"path":452,"stem":453},"Model Inheritance","\u002Fdjango\u002Fmodel\u002Finheritance","django\u002F020.model\u002F050.inheritance",{"title":455,"path":456,"stem":457},"Signals","\u002Fdjango\u002Fmodel\u002Fsignals","django\u002F020.model\u002F060.signals",{"title":459,"path":460,"stem":461,"children":462},"Indexes","\u002Fdjango\u002Fmodel\u002Findexes","django\u002F020.model\u002F070.indexes",[463],{"title":459,"path":460,"stem":461},{"title":465,"path":466,"stem":467},"Admin Site","\u002Fdjango\u002Fmodel\u002Fadmin-site","django\u002F020.model\u002F080.admin-site",{"title":469,"path":470,"stem":471},"Supported Databases","\u002Fdjango\u002Fmodel\u002Fsupported-databases","django\u002F020.model\u002F090.supported-databases",{"title":473,"path":474,"stem":475},"Custom User Model","\u002Fdjango\u002Fmodel\u002Fcustom-user-model","django\u002F020.model\u002F100.custom-user-model",{"title":477,"icon":478,"path":479,"stem":480,"children":481,"page":27},"The View","i-lucide-eye","\u002Fdjango\u002Fview","django\u002F030.view",[482,486,490,494,498,502,506],{"title":483,"path":484,"stem":485},"URL Dispatcher","\u002Fdjango\u002Fview\u002Furl-dispatcher","django\u002F030.view\u002F010.url-dispatcher",{"title":487,"path":488,"stem":489},"Function-Based Views","\u002Fdjango\u002Fview\u002Ffunction-based-views","django\u002F030.view\u002F020.function-based-views",{"title":491,"path":492,"stem":493},"Requests, Responses and Shortcuts","\u002Fdjango\u002Fview\u002Frequest-response-shortcuts","django\u002F030.view\u002F030.request-response-shortcuts",{"title":495,"path":496,"stem":497},"Class-Based Views","\u002Fdjango\u002Fview\u002Fclass-based-views","django\u002F030.view\u002F040.class-based-views",{"title":499,"path":500,"stem":501},"Forms","\u002Fdjango\u002Fview\u002Fforms","django\u002F030.view\u002F050.forms",{"title":503,"path":504,"stem":505},"Working with Files","\u002Fdjango\u002Fview\u002Ffiles","django\u002F030.view\u002F060.files",{"title":507,"path":508,"stem":509},"Middleware","\u002Fdjango\u002Fview\u002Fmiddleware","django\u002F030.view\u002F070.middleware",{"title":511,"icon":512,"path":513,"stem":514,"children":515,"page":27},"The Template","i-lucide-layout-template","\u002Fdjango\u002Ftemplate","django\u002F040.template",[516,520,524],{"title":517,"path":518,"stem":519},"Template Engine","\u002Fdjango\u002Ftemplate\u002Ftemplate-engine","django\u002F040.template\u002F010.template-engine",{"title":521,"path":522,"stem":523},"Template Tags and Filters","\u002Fdjango\u002Ftemplate\u002Ftemplate-tags-and-filters","django\u002F040.template\u002F020.template-tags-and-filters",{"title":525,"path":526,"stem":527},"Custom Template Backends","\u002Fdjango\u002Ftemplate\u002Fcustom-template-backends","django\u002F040.template\u002F030.custom-template-backends",{"title":529,"icon":530,"path":531,"stem":532,"children":533,"page":27},"Authentication & Security","i-lucide-shield-check","\u002Fdjango\u002Fauth-and-security","django\u002F050.auth-and-security",[534,538,542,546,550],{"title":535,"path":536,"stem":537},"Authentication","\u002Fdjango\u002Fauth-and-security\u002Fauthentication","django\u002F050.auth-and-security\u002F010.authentication",{"title":539,"path":540,"stem":541},"Authorization & Sessions","\u002Fdjango\u002Fauth-and-security\u002Fauthorization-and-sessions","django\u002F050.auth-and-security\u002F020.authorization-and-sessions",{"title":543,"path":544,"stem":545},"Security","\u002Fdjango\u002Fauth-and-security\u002Fsecurity","django\u002F050.auth-and-security\u002F030.security",{"title":547,"path":548,"stem":549},"Custom Authentication Backends","\u002Fdjango\u002Fauth-and-security\u002Fcustom-auth-backends","django\u002F050.auth-and-security\u002F040.custom-auth-backends",{"title":551,"path":552,"stem":553},"Permissions & Groups","\u002Fdjango\u002Fauth-and-security\u002Fpermissions-and-groups","django\u002F050.auth-and-security\u002F050.permissions-and-groups",{"title":555,"icon":556,"path":557,"stem":558,"children":559,"page":27},"Miscellaneous","i-lucide-shapes","\u002Fdjango\u002Fmisc","django\u002F060.misc",[560,564,568,572,576,580,584,588,592,596,600],{"title":561,"path":562,"stem":563},"Static & Media Files","\u002Fdjango\u002Fmisc\u002Fstatic-and-media-files","django\u002F060.misc\u002F010.static-and-media-files",{"title":565,"path":566,"stem":567},"Settings.py","\u002Fdjango\u002Fmisc\u002Fsettings","django\u002F060.misc\u002F020.settings",{"title":569,"path":570,"stem":571},"Logging","\u002Fdjango\u002Fmisc\u002Flogging","django\u002F060.misc\u002F030.logging",{"title":573,"path":574,"stem":575},"Caching","\u002Fdjango\u002Fmisc\u002Fcaching","django\u002F060.misc\u002F040.caching",{"title":577,"path":578,"stem":579},"GraphQL","\u002Fdjango\u002Fmisc\u002Fgraphql","django\u002F060.misc\u002F050.graphql",{"title":581,"path":582,"stem":583},"Pagination","\u002Fdjango\u002Fmisc\u002Fpagination","django\u002F060.misc\u002F060.pagination",{"title":585,"path":586,"stem":587},"Serialization","\u002Fdjango\u002Fmisc\u002Fserialization","django\u002F060.misc\u002F070.serialization",{"title":589,"path":590,"stem":591},"Messages Framework","\u002Fdjango\u002Fmisc\u002Fmessages","django\u002F060.misc\u002F080.messages",{"title":593,"path":594,"stem":595},"Channels","\u002Fdjango\u002Fmisc\u002Fchannels","django\u002F060.misc\u002F090.channels",{"title":597,"path":598,"stem":599},"Flatpages App","\u002Fdjango\u002Fmisc\u002Fflatpages","django\u002F060.misc\u002F100.flatpages",{"title":601,"path":602,"stem":603},"Advanced Database Topics","\u002Fdjango\u002Fmisc\u002Fdatabases","django\u002F060.misc\u002F110.databases",{"title":605,"icon":606,"path":607,"stem":608,"children":609,"page":27},"Testing","i-lucide-flask-conical","\u002Fdjango\u002Ftesting","django\u002F070.testing",[610],{"title":611,"path":612,"stem":613},"TestCase","\u002Fdjango\u002Ftesting\u002Ftestcase","django\u002F070.testing\u002F010.testcase",{"title":615,"icon":616,"path":617,"stem":618,"children":619,"page":27},"Deployments","i-lucide-cloud-upload","\u002Fdjango\u002Fdeployments","django\u002F080.deployments",[620,623,627,631,635,639],{"title":20,"path":621,"stem":622},"\u002Fdjango\u002Fdeployments\u002Fintro","django\u002F080.deployments\u002F010.intro",{"title":624,"path":625,"stem":626},"WSGI","\u002Fdjango\u002Fdeployments\u002Fwsgi","django\u002F080.deployments\u002F020.wsgi",{"title":628,"path":629,"stem":630},"ASGI","\u002Fdjango\u002Fdeployments\u002Fasgi","django\u002F080.deployments\u002F030.asgi",{"title":632,"path":633,"stem":634},"Static & Media files in Production","\u002Fdjango\u002Fdeployments\u002Fstatic-and-media-files-in-production","django\u002F080.deployments\u002F040.static-and-media-files-in-production",{"title":636,"path":637,"stem":638},"Production Checklist","\u002Fdjango\u002Fdeployments\u002Fprod-checklist","django\u002F080.deployments\u002F050.prod-checklist",{"title":640,"path":641,"stem":642},"How to deploy in Linode","\u002Fdjango\u002Fdeployments\u002Fdeploy-in-linode","django\u002F080.deployments\u002F060.deploy-in-linode",{"title":644,"icon":645,"path":646,"stem":647,"children":648,"page":27},"How-to Guides","i-lucide-list-checks","\u002Fdjango\u002Fhow-to","django\u002F090.how-to",[649,653],{"title":650,"path":651,"stem":652},"How to Send Emails","\u002Fdjango\u002Fhow-to\u002Fsend-emails","django\u002F090.how-to\u002F010.send-emails",{"title":654,"path":655,"stem":656},"Environments","\u002Fdjango\u002Fhow-to\u002Fenvironments","django\u002F090.how-to\u002F020.environments",{"title":159,"icon":160,"path":658,"stem":659,"children":660,"page":27},"\u002Fdjango\u002Fappendix","django\u002F100.appendix",[661,664,667],{"title":165,"path":662,"stem":663},"\u002Fdjango\u002Fappendix\u002Fversion","django\u002F100.appendix\u002F010.version",{"title":169,"path":665,"stem":666},"\u002Fdjango\u002Fappendix\u002Freferences","django\u002F100.appendix\u002F020.references",{"title":668,"path":669,"stem":670},"Resources","\u002Fdjango\u002Fappendix\u002Fresources","django\u002F100.appendix\u002F030.resources",{"title":672,"icon":673,"headerIcon":674,"summary":675,"tagline":676,"path":677,"stem":678,"children":679,"page":27},"Docker","i-logos-docker-icon","i-simple-icons-docker","Docker is a tool that automates the deployment of applications in lightweight containers, so that applications can run efficiently and consistently across different environments.","Apps in portable containers","\u002Fdocker","docker",[680,695,711,725],{"title":14,"icon":15,"path":681,"stem":682,"children":683,"page":27},"\u002Fdocker\u002Fgetting-started","docker\u002F010.getting-started",[684,687,691],{"title":20,"path":685,"stem":686},"\u002Fdocker\u002Fgetting-started\u002Fintroduction","docker\u002F010.getting-started\u002F010.introduction",{"title":688,"path":689,"stem":690},"Docker Engine","\u002Fdocker\u002Fgetting-started\u002Fdocker-engine","docker\u002F010.getting-started\u002F020.docker-engine",{"title":692,"path":693,"stem":694},"Docker Desktop","\u002Fdocker\u002Fgetting-started\u002Fdocker-desktop","docker\u002F010.getting-started\u002F030.docker-desktop",{"title":688,"icon":696,"path":697,"stem":698,"children":699,"page":27},"i-lucide-cpu","\u002Fdocker\u002Fengine","docker\u002F020.engine",[700,704,708],{"title":701,"path":702,"stem":703},"Core Components","\u002Fdocker\u002Fengine\u002Fcore-components","docker\u002F020.engine\u002F010.core-components",{"title":705,"path":706,"stem":707},"Supporting Components","\u002Fdocker\u002Fengine\u002Fsupporting-components","docker\u002F020.engine\u002F020.supporting-components",{"title":376,"path":709,"stem":710},"\u002Fdocker\u002Fengine\u002Farchitecture","docker\u002F020.engine\u002F030.architecture",{"title":712,"icon":713,"path":714,"stem":715,"children":716,"page":27},"Docker Objects","i-lucide-boxes","\u002Fdocker\u002Fobjects","docker\u002F030.objects",[717,721],{"title":718,"path":719,"stem":720},"Images & Registries","\u002Fdocker\u002Fobjects\u002Fimages-and-registries","docker\u002F030.objects\u002F010.images-and-registries",{"title":722,"path":723,"stem":724},"Containers","\u002Fdocker\u002Fobjects\u002Fcontainers","docker\u002F030.objects\u002F020.containers",{"title":726,"icon":727,"path":728,"stem":729,"children":730,"page":27},"Working with Docker","i-lucide-hammer","\u002Fdocker\u002Fconcepts","docker\u002F040.concepts",[731,735,739,743],{"title":732,"path":733,"stem":734},"Writing a Dockerfile","\u002Fdocker\u002Fconcepts\u002Fdockerfile","docker\u002F040.concepts\u002F010.dockerfile",{"title":736,"path":737,"stem":738},"Containerize an application","\u002Fdocker\u002Fconcepts\u002Fcontainerization","docker\u002F040.concepts\u002F020.containerization",{"title":740,"path":741,"stem":742},"Multi-Stage Builds","\u002Fdocker\u002Fconcepts\u002Fmulti-stage-builds","docker\u002F040.concepts\u002F030.multi-stage-builds",{"title":744,"path":745,"stem":746},"Multi-Platform Builds","\u002Fdocker\u002Fconcepts\u002Fmulti-platform-builds","docker\u002F040.concepts\u002F040.multi-platform-builds",{"title":748,"icon":749,"headerIcon":750,"summary":751,"tagline":752,"path":753,"stem":754,"children":755,"page":27},"Django REST Framework","i-custom-drf","i-custom-drf-mono","Django REST Framework is a powerful and flexible toolkit for building Web APIs in Django.","Build web APIs with Django","\u002Fdrf","drf",[756,766,787,812,842,866,881,906],{"title":14,"icon":15,"path":757,"stem":758,"children":759,"page":27},"\u002Fdrf\u002Fgetting-started","drf\u002F010.getting-started",[760,763],{"title":20,"path":761,"stem":762},"\u002Fdrf\u002Fgetting-started\u002Fintroduction","drf\u002F010.getting-started\u002F010.introduction",{"title":24,"path":764,"stem":765},"\u002Fdrf\u002Fgetting-started\u002Finstallation","drf\u002F010.getting-started\u002F020.installation",{"title":585,"icon":767,"path":768,"stem":769,"children":770,"page":27},"i-lucide-braces","\u002Fdrf\u002Fserialization","drf\u002F020.serialization",[771,775,779,783],{"title":772,"path":773,"stem":774},"Serializers","\u002Fdrf\u002Fserialization\u002Fserializers","drf\u002F020.serialization\u002F010.serializers",{"title":776,"path":777,"stem":778},"Relations","\u002Fdrf\u002Fserialization\u002Frelations","drf\u002F020.serialization\u002F020.relations",{"title":780,"path":781,"stem":782},"Validation","\u002Fdrf\u002Fserialization\u002Fvalidation","drf\u002F020.serialization\u002F030.validation",{"title":784,"path":785,"stem":786},"Custom Fields","\u002Fdrf\u002Fserialization\u002Fcustom-fields","drf\u002F020.serialization\u002F040.custom-fields",{"title":788,"icon":478,"path":789,"stem":790,"children":791,"page":27},"Views","\u002Fdrf\u002Fviews","drf\u002F030.views",[792,796,800,804,808],{"title":793,"path":794,"stem":795},"API Views","\u002Fdrf\u002Fviews\u002Fapi-views","drf\u002F030.views\u002F010.api-views",{"title":797,"path":798,"stem":799},"Mixins","\u002Fdrf\u002Fviews\u002Fmixins","drf\u002F030.views\u002F020.mixins",{"title":801,"path":802,"stem":803},"Generic Views","\u002Fdrf\u002Fviews\u002Fgeneric-views","drf\u002F030.views\u002F030.generic-views",{"title":805,"path":806,"stem":807},"ViewSets","\u002Fdrf\u002Fviews\u002Fviewsets","drf\u002F030.views\u002F040.viewsets",{"title":809,"path":810,"stem":811},"Routers","\u002Fdrf\u002Fviews\u002Frouters","drf\u002F030.views\u002F050.routers",{"title":813,"icon":814,"path":815,"stem":816,"children":817,"page":27},"Content Handling","i-lucide-file-json","\u002Fdrf\u002Fcontent-handling","drf\u002F040.content-handling",[818,822,826,830,834,838],{"title":819,"path":820,"stem":821},"Requests & Responses","\u002Fdrf\u002Fcontent-handling\u002Frequests-responses","drf\u002F040.content-handling\u002F010.requests-responses",{"title":823,"path":824,"stem":825},"Parsers","\u002Fdrf\u002Fcontent-handling\u002Fparsers","drf\u002F040.content-handling\u002F020.parsers",{"title":827,"path":828,"stem":829},"Renderers","\u002Fdrf\u002Fcontent-handling\u002Frenderers","drf\u002F040.content-handling\u002F030.renderers",{"title":831,"path":832,"stem":833},"Content Negotiation","\u002Fdrf\u002Fcontent-handling\u002Fcontent-negotiation","drf\u002F040.content-handling\u002F040.content-negotiation",{"title":835,"path":836,"stem":837},"Format Suffixes","\u002Fdrf\u002Fcontent-handling\u002Fformat-suffixes","drf\u002F040.content-handling\u002F050.format-suffixes",{"title":839,"path":840,"stem":841},"Metadata","\u002Fdrf\u002Fcontent-handling\u002Fmetadata","drf\u002F040.content-handling\u002F060.metadata",{"title":843,"icon":844,"path":845,"stem":846,"children":847,"page":27},"API Behavior","i-lucide-activity","\u002Fdrf\u002Fapi-behavior","drf\u002F050.api-behavior",[848,852,855,858,862],{"title":849,"path":850,"stem":851},"Filtering","\u002Fdrf\u002Fapi-behavior\u002Ffiltering","drf\u002F050.api-behavior\u002F010.filtering",{"title":581,"path":853,"stem":854},"\u002Fdrf\u002Fapi-behavior\u002Fpagination","drf\u002F050.api-behavior\u002F020.pagination",{"title":573,"path":856,"stem":857},"\u002Fdrf\u002Fapi-behavior\u002Fcaching","drf\u002F050.api-behavior\u002F030.caching",{"title":859,"path":860,"stem":861},"Versioning","\u002Fdrf\u002Fapi-behavior\u002Fversioning","drf\u002F050.api-behavior\u002F040.versioning",{"title":863,"path":864,"stem":865},"Exceptions","\u002Fdrf\u002Fapi-behavior\u002Fexceptions","drf\u002F050.api-behavior\u002F050.exceptions",{"title":543,"icon":530,"path":867,"stem":868,"children":869,"page":27},"\u002Fdrf\u002Fsecurity","drf\u002F060.security",[870,873,877],{"title":535,"path":871,"stem":872},"\u002Fdrf\u002Fsecurity\u002Fauthentication","drf\u002F060.security\u002F010.authentication",{"title":874,"path":875,"stem":876},"Permissions","\u002Fdrf\u002Fsecurity\u002Fpermissions","drf\u002F060.security\u002F020.permissions",{"title":878,"path":879,"stem":880},"Throttling","\u002Fdrf\u002Fsecurity\u002Fthrottling","drf\u002F060.security\u002F030.throttling",{"title":882,"icon":883,"path":884,"stem":885,"children":886,"page":27},"Tooling","i-lucide-wrench","\u002Fdrf\u002Ftooling","drf\u002F070.tooling",[887,891,895,898,902],{"title":888,"path":889,"stem":890},"Browsable API","\u002Fdrf\u002Ftooling\u002Fbrowsable-api","drf\u002F070.tooling\u002F010.browsable-api",{"title":892,"path":893,"stem":894},"Schemas","\u002Fdrf\u002Ftooling\u002Fschemas","drf\u002F070.tooling\u002F020.schemas",{"title":605,"path":896,"stem":897},"\u002Fdrf\u002Ftooling\u002Ftesting","drf\u002F070.tooling\u002F030.testing",{"title":899,"path":900,"stem":901},"Settings","\u002Fdrf\u002Ftooling\u002Fsettings","drf\u002F070.tooling\u002F040.settings",{"title":903,"path":904,"stem":905},"URL Reversing","\u002Fdrf\u002Ftooling\u002Freverse","drf\u002F070.tooling\u002F050.reverse",{"title":159,"icon":160,"path":907,"stem":908,"children":909,"page":27},"\u002Fdrf\u002Fappendix","drf\u002F080.appendix",[910,914,917,920,923],{"title":911,"path":912,"stem":913},"Status Codes","\u002Fdrf\u002Fappendix\u002Fstatus-codes","drf\u002F080.appendix\u002F010.status-codes",{"title":636,"path":915,"stem":916},"\u002Fdrf\u002Fappendix\u002Fprod-checklist","drf\u002F080.appendix\u002F020.prod-checklist",{"title":165,"path":918,"stem":919},"\u002Fdrf\u002Fappendix\u002Fversion","drf\u002F080.appendix\u002F030.version",{"title":169,"path":921,"stem":922},"\u002Fdrf\u002Fappendix\u002Freferences","drf\u002F080.appendix\u002F040.references",{"title":668,"path":924,"stem":925},"\u002Fdrf\u002Fappendix\u002Fresources","drf\u002F080.appendix\u002F050.resources",{"title":927,"icon":928,"headerIcon":929,"summary":930,"tagline":931,"path":932,"stem":927,"children":933,"page":27},"pytest","i-vscode-icons-file-type-pytest","i-simple-icons-pytest","pytest is a Python testing framework that makes it easy to write simple as well as scalable test cases.","Simple, scalable Python tests","\u002Fpytest",[934,944,962,1024,1038,1070],{"title":14,"icon":15,"path":935,"stem":936,"children":937,"page":27},"\u002Fpytest\u002Fgetting-started","pytest\u002F010.getting-started",[938,941],{"title":20,"path":939,"stem":940},"\u002Fpytest\u002Fgetting-started\u002Fintroduction","pytest\u002F010.getting-started\u002F010.introduction",{"title":24,"path":942,"stem":943},"\u002Fpytest\u002Fgetting-started\u002Finstallation","pytest\u002F010.getting-started\u002F020.installation",{"title":945,"icon":946,"path":947,"stem":948,"children":949,"page":27},"Running Tests","i-lucide-play","\u002Fpytest\u002Frunning-tests","pytest\u002F020.running-tests",[950,954,958],{"title":951,"path":952,"stem":953},"Target Specific Tests","\u002Fpytest\u002Frunning-tests\u002Ftarget-specific-tests","pytest\u002F020.running-tests\u002F010.target-specific-tests",{"title":955,"path":956,"stem":957},"Filters, Markers & Expected Exceptions","\u002Fpytest\u002Frunning-tests\u002Ffilters-and-markers","pytest\u002F020.running-tests\u002F020.filters-and-markers",{"title":959,"path":960,"stem":961},"Parametrized Testing","\u002Fpytest\u002Frunning-tests\u002Fparametrized-testing","pytest\u002F020.running-tests\u002F030.parametrized-testing",{"title":963,"icon":964,"path":965,"stem":966,"children":967,"page":27},"Fixtures","i-lucide-puzzle","\u002Fpytest\u002Ffixtures","pytest\u002F030.fixtures",[968,971,975,979,983,987],{"title":20,"path":969,"stem":970},"\u002Fpytest\u002Ffixtures\u002Fabout","pytest\u002F030.fixtures\u002F010.about",{"title":972,"path":973,"stem":974},"Sharing","\u002Fpytest\u002Ffixtures\u002Fsharing","pytest\u002F030.fixtures\u002F020.sharing",{"title":976,"path":977,"stem":978},"Scope","\u002Fpytest\u002Ffixtures\u002Fscope","pytest\u002F030.fixtures\u002F030.scope",{"title":980,"path":981,"stem":982},"Extending and Renaming","\u002Fpytest\u002Ffixtures\u002Fextending-and-renaming","pytest\u002F030.fixtures\u002F040.extending-and-renaming",{"title":984,"path":985,"stem":986},"Parametrizing","\u002Fpytest\u002Ffixtures\u002Fparametrizing","pytest\u002F030.fixtures\u002F050.parametrizing",{"title":988,"icon":989,"path":990,"stem":991,"children":992,"page":27},"Builtin Fixtures","i-lucide-package","\u002Fpytest\u002Ffixtures\u002Fbuiltin","pytest\u002F030.fixtures\u002F060.builtin",[993,996,1000,1004,1008,1012,1016,1020],{"title":20,"path":994,"stem":995},"\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Fabout","pytest\u002F030.fixtures\u002F060.builtin\u002F010.about",{"title":997,"path":998,"stem":999},"request","\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Frequest","pytest\u002F030.fixtures\u002F060.builtin\u002F020.request",{"title":1001,"path":1002,"stem":1003},"tmp_path","\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Ftmp-path","pytest\u002F030.fixtures\u002F060.builtin\u002F030.tmp-path",{"title":1005,"path":1006,"stem":1007},"pytestconfig","\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Fpytestconfig","pytest\u002F030.fixtures\u002F060.builtin\u002F040.pytestconfig",{"title":1009,"path":1010,"stem":1011},"cache","\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Fcache","pytest\u002F030.fixtures\u002F060.builtin\u002F050.cache",{"title":1013,"path":1014,"stem":1015},"capsys","\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Fcapsys","pytest\u002F030.fixtures\u002F060.builtin\u002F060.capsys",{"title":1017,"path":1018,"stem":1019},"caplog","\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Fcaplog","pytest\u002F030.fixtures\u002F060.builtin\u002F070.caplog",{"title":1021,"path":1022,"stem":1023},"monkeypatch","\u002Fpytest\u002Ffixtures\u002Fbuiltin\u002Fmonkeypatch","pytest\u002F030.fixtures\u002F060.builtin\u002F080.monkeypatch",{"title":1025,"icon":1026,"path":1027,"stem":1028,"children":1029,"page":27},"Customization","i-lucide-sliders-horizontal","\u002Fpytest\u002Fcustomization","pytest\u002F040.customization",[1030,1034],{"title":1031,"path":1032,"stem":1033},"Plugins","\u002Fpytest\u002Fcustomization\u002Fplugins","pytest\u002F040.customization\u002F010.plugins",{"title":1035,"path":1036,"stem":1037},"Configuration","\u002Fpytest\u002Fcustomization\u002Fconfiguration","pytest\u002F040.customization\u002F020.configuration",{"title":1039,"icon":883,"path":1040,"stem":1041,"children":1042,"page":27},"Using Other Tools","\u002Fpytest\u002Fother-tools","pytest\u002F050.other-tools",[1043,1046,1050,1054,1058,1062,1066],{"title":20,"path":1044,"stem":1045},"\u002Fpytest\u002Fother-tools\u002Fabout","pytest\u002F050.other-tools\u002F010.about",{"title":1047,"path":1048,"stem":1049},"pdb","\u002Fpytest\u002Fother-tools\u002Fpdb","pytest\u002F050.other-tools\u002F020.pdb",{"title":1051,"path":1052,"stem":1053},"Coverage.py","\u002Fpytest\u002Fother-tools\u002Fcoverage-py","pytest\u002F050.other-tools\u002F030.coverage-py",{"title":1055,"path":1056,"stem":1057},"mock","\u002Fpytest\u002Fother-tools\u002Fmock","pytest\u002F050.other-tools\u002F040.mock",{"title":1059,"path":1060,"stem":1061},"unittest","\u002Fpytest\u002Fother-tools\u002Funittest","pytest\u002F050.other-tools\u002F050.unittest",{"title":1063,"path":1064,"stem":1065},"tox","\u002Fpytest\u002Fother-tools\u002Ftox","pytest\u002F050.other-tools\u002F060.tox",{"title":1067,"path":1068,"stem":1069},"Jenkins CI","\u002Fpytest\u002Fother-tools\u002Fjenkins","pytest\u002F050.other-tools\u002F070.jenkins",{"title":159,"icon":160,"path":1071,"stem":1072,"children":1073,"page":27},"\u002Fpytest\u002Fappendix","pytest\u002F060.appendix",[1074,1077],{"title":165,"path":1075,"stem":1076},"\u002Fpytest\u002Fappendix\u002Fversion","pytest\u002F060.appendix\u002F010.version",{"title":169,"path":1078,"stem":1079},"\u002Fpytest\u002Fappendix\u002Freferences","pytest\u002F060.appendix\u002F020.references",{"title":1081,"icon":1082,"headerIcon":1083,"summary":1084,"tagline":1085,"path":1086,"stem":1087,"children":1088,"page":27},"Python","i-logos-python","i-simple-icons-python","Python is a high-level, general-purpose programming language that emphasizes code readability through the use of significant indentation.","Readable, general-purpose language","\u002Fpython","python",[1089,1105,1115,1129,1138],{"title":1090,"icon":1091,"path":1092,"stem":1093,"children":1094,"page":27},"Fundamentals","i-lucide-blocks","\u002Fpython\u002Ffundamentals","python\u002F010.fundamentals",[1095,1098,1101],{"title":20,"path":1096,"stem":1097},"\u002Fpython\u002Ffundamentals\u002Fintroduction","python\u002F010.fundamentals\u002F010.introduction",{"title":24,"path":1099,"stem":1100},"\u002Fpython\u002Ffundamentals\u002Finstallation","python\u002F010.fundamentals\u002F020.installation",{"title":1102,"path":1103,"stem":1104},"Execute Python Code","\u002Fpython\u002Ffundamentals\u002Fexecute-python-code","python\u002F010.fundamentals\u002F030.execute-python-code",{"title":1106,"icon":1107,"path":1108,"stem":1109,"children":1110,"page":27},"Project Management","i-lucide-folder-tree","\u002Fpython\u002Fproject-management","python\u002F020.project-management",[1111],{"title":1112,"path":1113,"stem":1114},"uv: All-in-One Package Manager","\u002Fpython\u002Fproject-management\u002Fuv","python\u002F020.project-management\u002F010.uv",{"title":1116,"icon":1117,"path":1118,"stem":1119,"children":1120,"page":27},"Typing & Linting","i-lucide-spell-check","\u002Fpython\u002Ftyping-and-linting","python\u002F030.typing-and-linting",[1121,1125],{"title":1122,"path":1123,"stem":1124},"Linting and Formatting","\u002Fpython\u002Ftyping-and-linting\u002Flinting-and-formatting","python\u002F030.typing-and-linting\u002F010.linting-and-formatting",{"title":1126,"path":1127,"stem":1128},"Ruff: The All-in-One Linter","\u002Fpython\u002Ftyping-and-linting\u002Fruff","python\u002F030.typing-and-linting\u002F020.ruff",{"title":1130,"icon":989,"path":1131,"stem":1132,"children":1133,"page":27},"Third-Party Packages","\u002Fpython\u002Fthird-party-packages","python\u002F040.third-party-packages",[1134],{"title":1135,"path":1136,"stem":1137},"Requests","\u002Fpython\u002Fthird-party-packages\u002Frequests","python\u002F040.third-party-packages\u002F010.requests",{"title":159,"icon":160,"path":1139,"stem":1140,"children":1141,"page":27},"\u002Fpython\u002Fappendix","python\u002F050.appendix",[1142,1145],{"title":165,"path":1143,"stem":1144},"\u002Fpython\u002Fappendix\u002Fversion","python\u002F050.appendix\u002F010.version",{"title":169,"path":1146,"stem":1147},"\u002Fpython\u002Fappendix\u002Freferences","python\u002F050.appendix\u002F020.references",{"title":1149,"icon":1150,"headerIcon":1151,"summary":1152,"tagline":1153,"path":1154,"stem":1155,"children":1156,"page":27},"Rust","i-custom-ferris","i-custom-ferris-mono","Rust is a general-purpose programming language, known for its emphasis on performance, type safety, concurrency and memory safety.","Fast, memory-safe systems language","\u002Frust","rust",[1157,1182,1200],{"title":1090,"icon":1091,"path":1158,"stem":1159,"children":1160,"page":27},"\u002Frust\u002Ffundamentals","rust\u002F010.fundamentals",[1161,1164,1167,1170,1174,1178],{"title":20,"path":1162,"stem":1163},"\u002Frust\u002Ffundamentals\u002Fintroduction","rust\u002F010.fundamentals\u002F010.introduction",{"title":24,"path":1165,"stem":1166},"\u002Frust\u002Ffundamentals\u002Finstallation","rust\u002F010.fundamentals\u002F020.installation",{"title":14,"path":1168,"stem":1169},"\u002Frust\u002Ffundamentals\u002Fgetting-started","rust\u002F010.fundamentals\u002F030.getting-started",{"title":1171,"path":1172,"stem":1173},"Variables and Data Types","\u002Frust\u002Ffundamentals\u002Fvariables-and-data-types","rust\u002F010.fundamentals\u002F040.variables-and-data-types",{"title":1175,"path":1176,"stem":1177},"Functions, Statements and Comments","\u002Frust\u002Ffundamentals\u002Ffunctions-statements-comments","rust\u002F010.fundamentals\u002F050.functions-statements-comments",{"title":1179,"path":1180,"stem":1181},"Control Flow","\u002Frust\u002Ffundamentals\u002Fcontrol-flow","rust\u002F010.fundamentals\u002F060.control-flow",{"title":1183,"icon":1184,"path":1185,"stem":1186,"children":1187,"page":27},"Ownership","i-lucide-key-round","\u002Frust\u002Fownership","rust\u002F020.ownership",[1188,1192,1196],{"title":1189,"path":1190,"stem":1191},"What is Ownership?","\u002Frust\u002Fownership\u002Fownership","rust\u002F020.ownership\u002F010.ownership",{"title":1193,"path":1194,"stem":1195},"References and Borrowing","\u002Frust\u002Fownership\u002Freferences-and-borrowing","rust\u002F020.ownership\u002F020.references-and-borrowing",{"title":1197,"path":1198,"stem":1199},"The Slice Type","\u002Frust\u002Fownership\u002Fslice-type","rust\u002F020.ownership\u002F030.slice-type",{"title":159,"icon":160,"path":1201,"stem":1202,"children":1203,"page":27},"\u002Frust\u002Fappendix","rust\u002F030.appendix",[1204,1207,1210],{"title":165,"path":1205,"stem":1206},"\u002Frust\u002Fappendix\u002Fversion","rust\u002F030.appendix\u002F010.version",{"title":169,"path":1208,"stem":1209},"\u002Frust\u002Fappendix\u002Freferences","rust\u002F030.appendix\u002F020.references",{"title":668,"path":1211,"stem":1212},"\u002Frust\u002Fappendix\u002Fresources","rust\u002F030.appendix\u002F030.resources",{"title":1214,"icon":1215,"headerIcon":1216,"summary":1217,"tagline":1218,"path":1219,"stem":1220,"children":1221,"page":27},"Streamlit","i-logos-streamlit","i-simple-icons-streamlit","Streamlit is an open-source Python framework for building dynamic web applications, primarily designed for data science and machine learning projects.","Data apps in pure Python","\u002Fstreamlit","streamlit",[1222,1232,1271,1291],{"title":14,"icon":15,"path":1223,"stem":1224,"children":1225,"page":27},"\u002Fstreamlit\u002Fgetting-started","streamlit\u002F010.getting-started",[1226,1229],{"title":20,"path":1227,"stem":1228},"\u002Fstreamlit\u002Fgetting-started\u002Fintroduction","streamlit\u002F010.getting-started\u002F010.introduction",{"title":24,"path":1230,"stem":1231},"\u002Fstreamlit\u002Fgetting-started\u002Finstallation","streamlit\u002F010.getting-started\u002F020.installation",{"title":1233,"icon":1234,"path":1235,"stem":1236,"children":1237,"page":27},"Core","i-lucide-layers","\u002Fstreamlit\u002Fcore","streamlit\u002F020.core",[1238,1241,1245,1249,1252,1256,1260,1264,1267],{"title":376,"path":1239,"stem":1240},"\u002Fstreamlit\u002Fcore\u002Farchitecture","streamlit\u002F020.core\u002F010.architecture",{"title":1242,"path":1243,"stem":1244},"App Chrome","\u002Fstreamlit\u002Fcore\u002Fapp-chrome","streamlit\u002F020.core\u002F020.app-chrome",{"title":1246,"path":1247,"stem":1248},"Session State","\u002Fstreamlit\u002Fcore\u002Fsession-state","streamlit\u002F020.core\u002F030.session-state",{"title":573,"path":1250,"stem":1251},"\u002Fstreamlit\u002Fcore\u002Fcaching","streamlit\u002F020.core\u002F040.caching",{"title":1253,"path":1254,"stem":1255},"Data Flow","\u002Fstreamlit\u002Fcore\u002Fdata-flow","streamlit\u002F020.core\u002F050.data-flow",{"title":1257,"path":1258,"stem":1259},"Widgets","\u002Fstreamlit\u002Fcore\u002Fwidgets","streamlit\u002F020.core\u002F060.widgets",{"title":1261,"path":1262,"stem":1263},"Fragments","\u002Fstreamlit\u002Fcore\u002Ffragments","streamlit\u002F020.core\u002F070.fragments",{"title":499,"path":1265,"stem":1266},"\u002Fstreamlit\u002Fcore\u002Fforms","streamlit\u002F020.core\u002F080.forms",{"title":1268,"path":1269,"stem":1270},"Multipage Apps","\u002Fstreamlit\u002Fcore\u002Fmultipage-apps","streamlit\u002F020.core\u002F090.multipage-apps",{"title":1035,"icon":1272,"path":1273,"stem":1274,"children":1275,"page":27},"i-lucide-settings","\u002Fstreamlit\u002Fconfiguration","streamlit\u002F030.configuration",[1276,1280,1284,1287],{"title":1277,"path":1278,"stem":1279},"Secrets","\u002Fstreamlit\u002Fconfiguration\u002Fsecrets","streamlit\u002F030.configuration\u002F010.secrets",{"title":1281,"path":1282,"stem":1283},"Connections","\u002Fstreamlit\u002Fconfiguration\u002Fconnections","streamlit\u002F030.configuration\u002F020.connections",{"title":1025,"path":1285,"stem":1286},"\u002Fstreamlit\u002Fconfiguration\u002Fcustomization","streamlit\u002F030.configuration\u002F030.customization",{"title":1288,"path":1289,"stem":1290},"Emojis","\u002Fstreamlit\u002Fconfiguration\u002Femojis","streamlit\u002F030.configuration\u002F040.emojis",{"title":159,"icon":160,"path":1292,"stem":1293,"children":1294,"page":27},"\u002Fstreamlit\u002Fappendix","streamlit\u002F040.appendix",[1295,1298,1301],{"title":165,"path":1296,"stem":1297},"\u002Fstreamlit\u002Fappendix\u002Fversion","streamlit\u002F040.appendix\u002F010.version",{"title":169,"path":1299,"stem":1300},"\u002Fstreamlit\u002Fappendix\u002Freferences","streamlit\u002F040.appendix\u002F020.references",{"title":173,"path":1302,"stem":1303},"\u002Fstreamlit\u002Fappendix\u002Fchanges","streamlit\u002F040.appendix\u002F030.changes",{"title":1305,"icon":1306,"headerIcon":1307,"summary":1308,"tagline":1309,"path":1310,"stem":1311,"children":1312,"page":27},"Swift","i-logos-swift","i-simple-icons-swift","Swift is a powerful and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV and Apple Watch.","Apple's language for apps","\u002Fswift","swift",[1313,1338,1352,1365,1382,1408],{"title":1090,"icon":1091,"path":1314,"stem":1315,"children":1316,"page":27},"\u002Fswift\u002Ffundamentals","swift\u002F010.fundamentals",[1317,1320,1323,1327,1330,1334],{"title":20,"path":1318,"stem":1319},"\u002Fswift\u002Ffundamentals\u002Fintroduction","swift\u002F010.fundamentals\u002F010.introduction",{"title":24,"path":1321,"stem":1322},"\u002Fswift\u002Ffundamentals\u002Finstallation","swift\u002F010.fundamentals\u002F020.installation",{"title":1324,"path":1325,"stem":1326},"Variables & Data Types","\u002Fswift\u002Ffundamentals\u002Fvariables-and-data-types","swift\u002F010.fundamentals\u002F030.variables-and-data-types",{"title":1179,"path":1328,"stem":1329},"\u002Fswift\u002Ffundamentals\u002Fcontrol-flow","swift\u002F010.fundamentals\u002F040.control-flow",{"title":1331,"path":1332,"stem":1333},"Functions","\u002Fswift\u002Ffundamentals\u002Ffunctions","swift\u002F010.fundamentals\u002F050.functions",{"title":1335,"path":1336,"stem":1337},"Tuples","\u002Fswift\u002Ffundamentals\u002Ftuples","swift\u002F010.fundamentals\u002F060.tuples",{"title":1339,"icon":1340,"path":1341,"stem":1342,"children":1343,"page":27},"Collections","i-lucide-list","\u002Fswift\u002Fcollections","swift\u002F020.collections",[1344,1348],{"title":1345,"path":1346,"stem":1347},"Arrays","\u002Fswift\u002Fcollections\u002Farrays","swift\u002F020.collections\u002F010.arrays",{"title":1349,"path":1350,"stem":1351},"Dictionaries & Sets","\u002Fswift\u002Fcollections\u002Fdictionaries-and-sets","swift\u002F020.collections\u002F020.dictionaries-and-sets",{"title":1353,"icon":1354,"path":1355,"stem":1356,"children":1357,"page":27},"Optionals","i-lucide-circle-help","\u002Fswift\u002Foptionals","swift\u002F030.optionals",[1358,1361],{"title":20,"path":1359,"stem":1360},"\u002Fswift\u002Foptionals\u002Fintroduction","swift\u002F030.optionals\u002F010.introduction",{"title":1362,"path":1363,"stem":1364},"Unwrapping & Chaining","\u002Fswift\u002Foptionals\u002Funwrapping","swift\u002F030.optionals\u002F020.unwrapping",{"title":1366,"icon":556,"path":1367,"stem":1368,"children":1369,"page":27},"Objects & Types","\u002Fswift\u002Fobjects","swift\u002F040.objects",[1370,1374,1378],{"title":1371,"path":1372,"stem":1373},"Structs & Classes","\u002Fswift\u002Fobjects\u002Fstructs-and-classes","swift\u002F040.objects\u002F010.structs-and-classes",{"title":1375,"path":1376,"stem":1377},"Enums","\u002Fswift\u002Fobjects\u002Fenums","swift\u002F040.objects\u002F020.enums",{"title":1379,"path":1380,"stem":1381},"Protocols & Extensions","\u002Fswift\u002Fobjects\u002Fprotocols-and-extensions","swift\u002F040.objects\u002F030.protocols-and-extensions",{"title":1383,"icon":1384,"path":1385,"stem":1386,"children":1387,"page":27},"Advanced","i-lucide-zap","\u002Fswift\u002Fadvanced","swift\u002F050.advanced",[1388,1392,1396,1400,1404],{"title":1389,"path":1390,"stem":1391},"Closures","\u002Fswift\u002Fadvanced\u002Fclosures","swift\u002F050.advanced\u002F010.closures",{"title":1393,"path":1394,"stem":1395},"Higher-Order Functions","\u002Fswift\u002Fadvanced\u002Fhigher-order-functions","swift\u002F050.advanced\u002F020.higher-order-functions",{"title":1397,"path":1398,"stem":1399},"Error Handling","\u002Fswift\u002Fadvanced\u002Ferror-handling","swift\u002F050.advanced\u002F030.error-handling",{"title":1401,"path":1402,"stem":1403},"Concurrency","\u002Fswift\u002Fadvanced\u002Fconcurrency","swift\u002F050.advanced\u002F040.concurrency",{"title":1405,"path":1406,"stem":1407},"Misc","\u002Fswift\u002Fadvanced\u002Fmisc","swift\u002F050.advanced\u002F050.misc",{"title":159,"icon":160,"path":1409,"stem":1410,"children":1411,"page":27},"\u002Fswift\u002Fappendix","swift\u002F060.appendix",[1412,1415],{"title":165,"path":1413,"stem":1414},"\u002Fswift\u002Fappendix\u002Fversion","swift\u002F060.appendix\u002F010.version",{"title":169,"path":1416,"stem":1417},"\u002Fswift\u002Fappendix\u002Freferences","swift\u002F060.appendix\u002F020.references",{"title":1419,"icon":1420,"headerIcon":1421,"summary":1422,"tagline":1423,"path":1424,"stem":1425,"children":1426,"page":27},"TypeScript","i-logos-typescript-icon","i-simple-icons-typescript","TypeScript is a strongly typed programming language that builds on JavaScript.","JavaScript with static types","\u002Ftypescript","typescript",[1427,1437,1461,1470,1482,1496,1509],{"title":14,"icon":15,"path":1428,"stem":1429,"children":1430,"page":27},"\u002Ftypescript\u002Fgetting-started","typescript\u002F010.getting-started",[1431,1434],{"title":20,"path":1432,"stem":1433},"\u002Ftypescript\u002Fgetting-started\u002Fintroduction","typescript\u002F010.getting-started\u002F010.introduction",{"title":24,"path":1435,"stem":1436},"\u002Ftypescript\u002Fgetting-started\u002Finstallation","typescript\u002F010.getting-started\u002F020.installation",{"title":1438,"icon":556,"path":1439,"stem":1440,"children":1441,"page":27},"Everyday Types","\u002Ftypescript\u002Feveryday-types","typescript\u002F020.everyday-types",[1442,1446,1450,1454,1457],{"title":1443,"path":1444,"stem":1445},"Basic Types","\u002Ftypescript\u002Feveryday-types\u002Fbasic-types","typescript\u002F020.everyday-types\u002F010.basic-types",{"title":1447,"path":1448,"stem":1449},"Arrays & Tuples","\u002Ftypescript\u002Feveryday-types\u002Farrays-and-tuples","typescript\u002F020.everyday-types\u002F020.arrays-and-tuples",{"title":1451,"path":1452,"stem":1453},"Union & Literal Types","\u002Ftypescript\u002Feveryday-types\u002Funion-and-literal-types","typescript\u002F020.everyday-types\u002F030.union-and-literal-types",{"title":1375,"path":1455,"stem":1456},"\u002Ftypescript\u002Feveryday-types\u002Fenums","typescript\u002F020.everyday-types\u002F040.enums",{"title":1458,"path":1459,"stem":1460},"Objects","\u002Ftypescript\u002Feveryday-types\u002Fobjects","typescript\u002F020.everyday-types\u002F050.objects",{"title":1331,"icon":1462,"path":1463,"stem":1464,"children":1465,"page":27},"i-lucide-square-function","\u002Ftypescript\u002Ffunctions","typescript\u002F030.functions",[1466],{"title":1467,"path":1468,"stem":1469},"Function Types","\u002Ftypescript\u002Ffunctions\u002Ffunction-types","typescript\u002F030.functions\u002F010.function-types",{"title":1471,"icon":194,"path":1472,"stem":1473,"children":1474,"page":27},"Classes","\u002Ftypescript\u002Fclasses","typescript\u002F040.classes",[1475,1478],{"title":1471,"path":1476,"stem":1477},"\u002Ftypescript\u002Fclasses\u002Fclasses","typescript\u002F040.classes\u002F010.classes",{"title":1479,"path":1480,"stem":1481},"Interfaces & Inheritance","\u002Ftypescript\u002Fclasses\u002Finterfaces-and-inheritance","typescript\u002F040.classes\u002F020.interfaces-and-inheritance",{"title":1483,"icon":1484,"path":1485,"stem":1486,"children":1487,"page":27},"Generics & Utility Types","i-lucide-brackets","\u002Ftypescript\u002Fgenerics","typescript\u002F050.generics",[1488,1492],{"title":1489,"path":1490,"stem":1491},"Generics","\u002Ftypescript\u002Fgenerics\u002Fgenerics","typescript\u002F050.generics\u002F010.generics",{"title":1493,"path":1494,"stem":1495},"Utility Types","\u002Ftypescript\u002Fgenerics\u002Futility-types","typescript\u002F050.generics\u002F020.utility-types",{"title":1497,"icon":1272,"path":1498,"stem":1499,"children":1500,"page":27},"Compiler & Config","\u002Ftypescript\u002Fcompiler","typescript\u002F060.compiler",[1501,1505],{"title":1502,"path":1503,"stem":1504},"tsc Command Line","\u002Ftypescript\u002Fcompiler\u002Ftsc-cli","typescript\u002F060.compiler\u002F010.tsc-cli",{"title":1506,"path":1507,"stem":1508},"tsconfig.json","\u002Ftypescript\u002Fcompiler\u002Ftsconfig","typescript\u002F060.compiler\u002F020.tsconfig",{"title":159,"icon":160,"path":1510,"stem":1511,"children":1512,"page":27},"\u002Ftypescript\u002Fappendix","typescript\u002F070.appendix",[1513,1516],{"title":165,"path":1514,"stem":1515},"\u002Ftypescript\u002Fappendix\u002Fversion","typescript\u002F070.appendix\u002F010.version",{"title":169,"path":1517,"stem":1518},"\u002Ftypescript\u002Fappendix\u002Freferences","typescript\u002F070.appendix\u002F020.references",{"title":1520,"icon":1521,"headerIcon":1522,"summary":1523,"tagline":1524,"path":1525,"stem":1526,"children":1527,"page":27},"Vue.js","i-logos-vue","i-simple-icons-vuedotjs","Vue.js is a progressive, open-source JavaScript framework used to build user interfaces and single-page applications (SPAs).","Progressive framework for web UIs","\u002Fvuejs","vuejs",[1528,1538,1624,1642],{"title":14,"icon":15,"path":1529,"stem":1530,"children":1531,"page":27},"\u002Fvuejs\u002Fgetting-started","vuejs\u002F010.getting-started",[1532,1535],{"title":20,"path":1533,"stem":1534},"\u002Fvuejs\u002Fgetting-started\u002Fintroduction","vuejs\u002F010.getting-started\u002F010.introduction",{"title":24,"path":1536,"stem":1537},"\u002Fvuejs\u002Fgetting-started\u002Finstallation","vuejs\u002F010.getting-started\u002F020.installation",{"title":1539,"icon":1540,"path":1541,"stem":1542,"children":1543,"page":27},"Essentials","i-lucide-gem","\u002Fvuejs\u002Fessentials","vuejs\u002F020.essentials",[1544,1548,1552,1556,1560,1612,1616,1620],{"title":1545,"path":1546,"stem":1547},"Creating an Application","\u002Fvuejs\u002Fessentials\u002Fapplication","vuejs\u002F020.essentials\u002F010.application",{"title":1549,"path":1550,"stem":1551},"Template Syntax","\u002Fvuejs\u002Fessentials\u002Ftemplate-syntax","vuejs\u002F020.essentials\u002F020.template-syntax",{"title":1553,"path":1554,"stem":1555},"Reactivity Fundamentals","\u002Fvuejs\u002Fessentials\u002Freactivity-fundamentals","vuejs\u002F020.essentials\u002F030.reactivity-fundamentals",{"title":1557,"path":1558,"stem":1559},"Computed Properties","\u002Fvuejs\u002Fessentials\u002Fcomputed","vuejs\u002F020.essentials\u002F040.computed",{"title":29,"icon":30,"path":1561,"stem":1562,"children":1563,"page":27},"\u002Fvuejs\u002Fessentials\u002Fdirectives","vuejs\u002F020.essentials\u002F050.directives",[1564,1568,1572,1576,1580,1584,1588,1592,1596,1600,1604,1608],{"title":1565,"path":1566,"stem":1567},"v-text & v-html","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-text-and-v-html","vuejs\u002F020.essentials\u002F050.directives\u002F010.v-text-and-v-html",{"title":1569,"path":1570,"stem":1571},"v-show","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-show","vuejs\u002F020.essentials\u002F050.directives\u002F020.v-show",{"title":1573,"path":1574,"stem":1575},"v-if","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-if","vuejs\u002F020.essentials\u002F050.directives\u002F030.v-if",{"title":1577,"path":1578,"stem":1579},"v-for","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-for","vuejs\u002F020.essentials\u002F050.directives\u002F040.v-for",{"title":1581,"path":1582,"stem":1583},"v-on","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-on","vuejs\u002F020.essentials\u002F050.directives\u002F050.v-on",{"title":1585,"path":1586,"stem":1587},"v-bind","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-bind","vuejs\u002F020.essentials\u002F050.directives\u002F060.v-bind",{"title":1589,"path":1590,"stem":1591},"v-model","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-model","vuejs\u002F020.essentials\u002F050.directives\u002F070.v-model",{"title":1593,"path":1594,"stem":1595},"v-slot","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-slot","vuejs\u002F020.essentials\u002F050.directives\u002F080.v-slot",{"title":1597,"path":1598,"stem":1599},"v-pre","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-pre","vuejs\u002F020.essentials\u002F050.directives\u002F090.v-pre",{"title":1601,"path":1602,"stem":1603},"v-once","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-once","vuejs\u002F020.essentials\u002F050.directives\u002F100.v-once",{"title":1605,"path":1606,"stem":1607},"v-memo","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-memo","vuejs\u002F020.essentials\u002F050.directives\u002F110.v-memo",{"title":1609,"path":1610,"stem":1611},"v-cloak","\u002Fvuejs\u002Fessentials\u002Fdirectives\u002Fv-cloak","vuejs\u002F020.essentials\u002F050.directives\u002F120.v-cloak",{"title":1613,"path":1614,"stem":1615},"List Rendering Caveats","\u002Fvuejs\u002Fessentials\u002Flist-caveats","vuejs\u002F020.essentials\u002F060.list-caveats",{"title":1617,"path":1618,"stem":1619},"Watchers","\u002Fvuejs\u002Fessentials\u002Fwatchers","vuejs\u002F020.essentials\u002F070.watchers",{"title":1621,"path":1622,"stem":1623},"Template Refs","\u002Fvuejs\u002Fessentials\u002Ftemplate-refs","vuejs\u002F020.essentials\u002F080.template-refs",{"title":1625,"icon":1626,"path":1627,"stem":1628,"children":1629,"page":27},"Components In-Depth","i-lucide-component","\u002Fvuejs\u002Fcomponents","vuejs\u002F030.components",[1630,1634,1638],{"title":1631,"path":1632,"stem":1633},"Components Basics","\u002Fvuejs\u002Fcomponents\u002Fbasics","vuejs\u002F030.components\u002F010.basics",{"title":1635,"path":1636,"stem":1637},"Lifecycle Hooks","\u002Fvuejs\u002Fcomponents\u002Flifecycle","vuejs\u002F030.components\u002F020.lifecycle",{"title":1639,"path":1640,"stem":1641},"Registration","\u002Fvuejs\u002Fcomponents\u002Fregistration","vuejs\u002F030.components\u002F030.registration",{"title":159,"icon":160,"path":1643,"stem":1644,"children":1645,"page":27},"\u002Fvuejs\u002Fappendix","vuejs\u002F040.appendix",[1646,1649],{"title":165,"path":1647,"stem":1648},"\u002Fvuejs\u002Fappendix\u002Fversion","vuejs\u002F040.appendix\u002F010.version",{"title":169,"path":1650,"stem":1651},"\u002Fvuejs\u002Fappendix\u002Freferences","vuejs\u002F040.appendix\u002F020.references",{"id":1653,"title":1389,"body":1654,"description":3371,"extension":3372,"links":3373,"meta":3374,"navigation":1805,"path":1390,"seo":3375,"stem":1391,"tags":3373,"__hash__":3376},"docs\u002Fswift\u002F050.advanced\u002F010.closures.md",{"type":1655,"value":1656,"toc":3353},"minimark",[1657,1661,1670,1679,1689,1723,1727,1735,1926,1930,1937,2065,2068,2175,2179,2193,2196,2413,2418,2435,2451,2455,2458,2466,2518,2522,2533,2605,2609,2612,2623,2626,2634,2640,2650,2760,2767,2772,2778,2865,2875,2882,2899,2914,2922,2925,3127,3135,3143,3149,3177,3180,3349],[1658,1659,1389],"h1",{"id":1660},"closures",[1662,1663,1664,1665,1669],"p",{},"Closures are self-contained blocks of code that do not require the ",[1666,1667,1668],"code",{},"func"," keyword or a formal name. They can be assigned to variables, passed as arguments to other functions, or returned from other functions. They are similar to \"lambdas\" or \"blocks\" in other programming languages.",[1671,1672,1674,1675,1678],"h2",{"id":1673},"closure-syntax-the-in-keyword","Closure Syntax (The ",[1666,1676,1677],{},"in"," keyword)",[1662,1680,1681,1682,1685,1686,1688],{},"Closures can take parameters and return values, just like normal functions. Since they lack a name, the entire syntax is written inside the curly braces ",[1666,1683,1684],{},"{ }",". Swift uses the ",[1666,1687,1677],{}," keyword to separate the parameters and return type from the actual body of the code.",[1690,1691,1695],"pre",{"className":1692,"code":1693,"language":1311,"meta":1694,"style":1694},"language-swift shiki shiki-themes wiki-light wiki-light dark-plus","{ (parameters) -> returnType in\n    \u002F\u002F body of the closure\n}\n","",[1666,1696,1697,1710,1717],{"__ignoreMap":1694},[1698,1699,1702,1706],"span",{"class":1700,"line":1701},"line",1,[1698,1703,1705],{"class":1704},"sp1VO","{ (parameters) -> returnType ",[1698,1707,1709],{"class":1708},"swpH1","in\n",[1698,1711,1713],{"class":1700,"line":1712},2,[1698,1714,1716],{"class":1715},"spVVU","    \u002F\u002F body of the closure\n",[1698,1718,1720],{"class":1700,"line":1719},3,[1698,1721,1722],{"class":1704},"}\n",[1671,1724,1726],{"id":1725},"functions-vs-closures","Functions vs Closures",[1662,1728,1729,1730,1734],{},"While functions and closures are technically the same thing (functions are essentially named closures), they differ in syntax and everyday usage. Most notably, closures ",[1731,1732,1733],"em",{},"do not use external argument labels"," when you call them.",[1690,1736,1738],{"className":1692,"code":1737,"language":1311,"meta":1694,"style":1694},"\u002F\u002F A regular named function\nfunc greet(name: String) -> String {\n    return \"Hello, \\(name)!\"\n}\n\n\u002F\u002F The same logic written as a closure stored in a variable\n\u002F\u002F Notice the explicit type annotation: (String) -> String\nlet greetClosure: (String) -> String = { (name: String) -> String in\n    return \"Hello, \\(name)!\"\n}\n\n\u002F\u002F Calling them looks almost identical: the function uses the label 'name', the closure does not\nprint(greet(name: \"Mia\"))   \u002F\u002F Hello, Mia!\nprint(greetClosure(\"Mia\"))  \u002F\u002F Hello, Mia!\n",[1666,1739,1740,1745,1775,1795,1800,1807,1813,1819,1850,1865,1870,1875,1881,1907],{"__ignoreMap":1694},[1698,1741,1742],{"class":1700,"line":1701},[1698,1743,1744],{"class":1715},"\u002F\u002F A regular named function\n",[1698,1746,1747,1750,1754,1757,1760,1763,1767,1770,1772],{"class":1700,"line":1712},[1698,1748,1668],{"class":1749},"sLOIA",[1698,1751,1753],{"class":1752},"ssLDM"," greet",[1698,1755,1756],{"class":1704},"(",[1698,1758,1759],{"class":1752},"name",[1698,1761,1762],{"class":1704},": ",[1698,1764,1766],{"class":1765},"sgt_h","String",[1698,1768,1769],{"class":1704},") -> ",[1698,1771,1766],{"class":1765},[1698,1773,1774],{"class":1704}," {\n",[1698,1776,1777,1780,1784,1787,1789,1792],{"class":1700,"line":1719},[1698,1778,1779],{"class":1708},"    return",[1698,1781,1783],{"class":1782},"sNJ0_"," \"Hello, ",[1698,1785,1786],{"class":1749},"\\(",[1698,1788,1759],{"class":1704},[1698,1790,1791],{"class":1749},")",[1698,1793,1794],{"class":1782},"!\"\n",[1698,1796,1798],{"class":1700,"line":1797},4,[1698,1799,1722],{"class":1704},[1698,1801,1803],{"class":1700,"line":1802},5,[1698,1804,1806],{"emptyLinePlaceholder":1805},true,"\n",[1698,1808,1810],{"class":1700,"line":1809},6,[1698,1811,1812],{"class":1715},"\u002F\u002F The same logic written as a closure stored in a variable\n",[1698,1814,1816],{"class":1700,"line":1815},7,[1698,1817,1818],{"class":1715},"\u002F\u002F Notice the explicit type annotation: (String) -> String\n",[1698,1820,1822,1825,1828,1830,1832,1834,1837,1839,1841,1843,1845,1847],{"class":1700,"line":1821},8,[1698,1823,1824],{"class":1749},"let",[1698,1826,1827],{"class":1704}," greetClosure: (",[1698,1829,1766],{"class":1765},[1698,1831,1769],{"class":1704},[1698,1833,1766],{"class":1765},[1698,1835,1836],{"class":1704}," = { (",[1698,1838,1759],{"class":1752},[1698,1840,1762],{"class":1704},[1698,1842,1766],{"class":1765},[1698,1844,1769],{"class":1704},[1698,1846,1766],{"class":1765},[1698,1848,1849],{"class":1708}," in\n",[1698,1851,1853,1855,1857,1859,1861,1863],{"class":1700,"line":1852},9,[1698,1854,1779],{"class":1708},[1698,1856,1783],{"class":1782},[1698,1858,1786],{"class":1749},[1698,1860,1759],{"class":1704},[1698,1862,1791],{"class":1749},[1698,1864,1794],{"class":1782},[1698,1866,1868],{"class":1700,"line":1867},10,[1698,1869,1722],{"class":1704},[1698,1871,1873],{"class":1700,"line":1872},11,[1698,1874,1806],{"emptyLinePlaceholder":1805},[1698,1876,1878],{"class":1700,"line":1877},12,[1698,1879,1880],{"class":1715},"\u002F\u002F Calling them looks almost identical: the function uses the label 'name', the closure does not\n",[1698,1882,1884,1887,1889,1892,1894,1896,1898,1901,1904],{"class":1700,"line":1883},13,[1698,1885,1886],{"class":1752},"print",[1698,1888,1756],{"class":1704},[1698,1890,1891],{"class":1752},"greet",[1698,1893,1756],{"class":1704},[1698,1895,1759],{"class":1752},[1698,1897,1762],{"class":1704},[1698,1899,1900],{"class":1782},"\"Mia\"",[1698,1902,1903],{"class":1704},"))   ",[1698,1905,1906],{"class":1715},"\u002F\u002F Hello, Mia!\n",[1698,1908,1910,1912,1914,1917,1919,1921,1924],{"class":1700,"line":1909},14,[1698,1911,1886],{"class":1752},[1698,1913,1756],{"class":1704},[1698,1915,1916],{"class":1752},"greetClosure",[1698,1918,1756],{"class":1704},[1698,1920,1900],{"class":1782},[1698,1922,1923],{"class":1704},"))  ",[1698,1925,1906],{"class":1715},[1671,1927,1929],{"id":1928},"trailing-closure-syntax","Trailing Closure Syntax",[1662,1931,1932,1933,1936],{},"If a closure is the ",[1731,1934,1935],{},"last argument"," passed to a function, it can be written outside the function's parentheses for a cleaner look.",[1690,1938,1940],{"className":1692,"code":1939,"language":1311,"meta":1694,"style":1694},"func downloadImage(url: String, onCompletion: () -> Void) {\n    onCompletion()\n}\n\ndownloadImage(url: \"piratedev.com\u002Fpic.png\", onCompletion: {\n    print(\"Action performed!\")\n})\n\n\u002F\u002F Same as above, but uses Trailing Closure Syntax\ndownloadImage(url: \"piratedev.com\u002Fpic.png\") {\n    print(\"Action performed!\")\n}\n",[1666,1941,1942,1973,1981,1985,1989,2010,2023,2028,2032,2037,2051,2061],{"__ignoreMap":1694},[1698,1943,1944,1946,1949,1951,1954,1956,1958,1961,1964,1967,1970],{"class":1700,"line":1701},[1698,1945,1668],{"class":1749},[1698,1947,1948],{"class":1752}," downloadImage",[1698,1950,1756],{"class":1704},[1698,1952,1953],{"class":1752},"url",[1698,1955,1762],{"class":1704},[1698,1957,1766],{"class":1765},[1698,1959,1960],{"class":1704},", ",[1698,1962,1963],{"class":1752},"onCompletion",[1698,1965,1966],{"class":1704},": () -> ",[1698,1968,1969],{"class":1765},"Void",[1698,1971,1972],{"class":1704},") {\n",[1698,1974,1975,1978],{"class":1700,"line":1712},[1698,1976,1977],{"class":1752},"    onCompletion",[1698,1979,1980],{"class":1704},"()\n",[1698,1982,1983],{"class":1700,"line":1719},[1698,1984,1722],{"class":1704},[1698,1986,1987],{"class":1700,"line":1797},[1698,1988,1806],{"emptyLinePlaceholder":1805},[1698,1990,1991,1994,1996,1998,2000,2003,2005,2007],{"class":1700,"line":1802},[1698,1992,1993],{"class":1752},"downloadImage",[1698,1995,1756],{"class":1704},[1698,1997,1953],{"class":1752},[1698,1999,1762],{"class":1704},[1698,2001,2002],{"class":1782},"\"piratedev.com\u002Fpic.png\"",[1698,2004,1960],{"class":1704},[1698,2006,1963],{"class":1752},[1698,2008,2009],{"class":1704},": {\n",[1698,2011,2012,2015,2017,2020],{"class":1700,"line":1809},[1698,2013,2014],{"class":1752},"    print",[1698,2016,1756],{"class":1704},[1698,2018,2019],{"class":1782},"\"Action performed!\"",[1698,2021,2022],{"class":1704},")\n",[1698,2024,2025],{"class":1700,"line":1815},[1698,2026,2027],{"class":1704},"})\n",[1698,2029,2030],{"class":1700,"line":1821},[1698,2031,1806],{"emptyLinePlaceholder":1805},[1698,2033,2034],{"class":1700,"line":1852},[1698,2035,2036],{"class":1715},"\u002F\u002F Same as above, but uses Trailing Closure Syntax\n",[1698,2038,2039,2041,2043,2045,2047,2049],{"class":1700,"line":1867},[1698,2040,1993],{"class":1752},[1698,2042,1756],{"class":1704},[1698,2044,1953],{"class":1752},[1698,2046,1762],{"class":1704},[1698,2048,2002],{"class":1782},[1698,2050,1972],{"class":1704},[1698,2052,2053,2055,2057,2059],{"class":1700,"line":1872},[1698,2054,2014],{"class":1752},[1698,2056,1756],{"class":1704},[1698,2058,2019],{"class":1782},[1698,2060,2022],{"class":1704},[1698,2062,2063],{"class":1700,"line":1877},[1698,2064,1722],{"class":1704},[1662,2066,2067],{},"If a function accepts multiple closures, you can omit the argument label for the first one, but use the parameter names as labels for the subsequent closures.",[1690,2069,2071],{"className":1692,"code":2070,"language":1311,"meta":1694,"style":1694},"func animate(duration: Double, animations: () -> Void, completion: () -> Void) {\n    \u002F\u002F ...\n}\n\nanimate(duration: 0.5) {\n    print(\"Fading in...\")\n} completion: {\n    print(\"Animation finished!\")\n}\n",[1666,2072,2073,2110,2115,2119,2123,2140,2151,2160,2171],{"__ignoreMap":1694},[1698,2074,2075,2077,2080,2082,2085,2087,2090,2092,2095,2097,2099,2101,2104,2106,2108],{"class":1700,"line":1701},[1698,2076,1668],{"class":1749},[1698,2078,2079],{"class":1752}," animate",[1698,2081,1756],{"class":1704},[1698,2083,2084],{"class":1752},"duration",[1698,2086,1762],{"class":1704},[1698,2088,2089],{"class":1765},"Double",[1698,2091,1960],{"class":1704},[1698,2093,2094],{"class":1752},"animations",[1698,2096,1966],{"class":1704},[1698,2098,1969],{"class":1765},[1698,2100,1960],{"class":1704},[1698,2102,2103],{"class":1752},"completion",[1698,2105,1966],{"class":1704},[1698,2107,1969],{"class":1765},[1698,2109,1972],{"class":1704},[1698,2111,2112],{"class":1700,"line":1712},[1698,2113,2114],{"class":1715},"    \u002F\u002F ...\n",[1698,2116,2117],{"class":1700,"line":1719},[1698,2118,1722],{"class":1704},[1698,2120,2121],{"class":1700,"line":1797},[1698,2122,1806],{"emptyLinePlaceholder":1805},[1698,2124,2125,2128,2130,2132,2134,2138],{"class":1700,"line":1802},[1698,2126,2127],{"class":1752},"animate",[1698,2129,1756],{"class":1704},[1698,2131,2084],{"class":1752},[1698,2133,1762],{"class":1704},[1698,2135,2137],{"class":2136},"sANI1","0.5",[1698,2139,1972],{"class":1704},[1698,2141,2142,2144,2146,2149],{"class":1700,"line":1809},[1698,2143,2014],{"class":1752},[1698,2145,1756],{"class":1704},[1698,2147,2148],{"class":1782},"\"Fading in...\"",[1698,2150,2022],{"class":1704},[1698,2152,2153,2156,2158],{"class":1700,"line":1815},[1698,2154,2155],{"class":1704},"} ",[1698,2157,2103],{"class":1752},[1698,2159,2009],{"class":1704},[1698,2161,2162,2164,2166,2169],{"class":1700,"line":1821},[1698,2163,2014],{"class":1752},[1698,2165,1756],{"class":1704},[1698,2167,2168],{"class":1782},"\"Animation finished!\"",[1698,2170,2022],{"class":1704},[1698,2172,2173],{"class":1700,"line":1852},[1698,2174,1722],{"class":1704},[1671,2176,2178],{"id":2177},"shorthand-syntax","Shorthand Syntax",[1662,2180,2181,2182,2185,2186,2189,2190,2192],{},"Swift's compiler is incredibly smart and allows you to strip away unnecessary code. It provides automatic names for the arguments inside a closure: ",[1666,2183,2184],{},"$0"," for the first, ",[1666,2187,2188],{},"$1"," for the second and so on. This allows you to omit the parameter list and the ",[1666,2191,1677],{}," keyword entirely for simple one-liners (Inline Closures).",[1662,2194,2195],{},"The following example shows how a full closure gets shortened:",[1690,2197,2199],{"className":1692,"code":2198,"language":1311,"meta":1694,"style":1694},"\u002F\u002F Full Syntax\nlet addNumbers: (Int, Int) -> Int = { (a: Int, b: Int) -> Int in\n    return a + b\n}\n\n\u002F\u002F Types inferred\nlet addNumbers2: (Int, Int) -> Int = { a, b in\n    return a + b\n}\n\n\u002F\u002F Implicit return\nlet addNumbers3: (Int, Int) -> Int = { a, b in\n   a + b\n}\n\n\u002F\u002F Shorthand argument names\nlet addNumbers4: (Int, Int) -> Int = { $0 + $1 }\n\n\u002F\u002F Operator Shorthand\nlet addNumbers5: (Int, Int) -> Int = +\n",[1666,2200,2201,2206,2248,2255,2259,2263,2268,2290,2296,2300,2304,2309,2330,2335,2339,2344,2350,2381,2386,2392],{"__ignoreMap":1694},[1698,2202,2203],{"class":1700,"line":1701},[1698,2204,2205],{"class":1715},"\u002F\u002F Full Syntax\n",[1698,2207,2208,2210,2213,2216,2218,2220,2222,2224,2226,2229,2231,2233,2235,2238,2240,2242,2244,2246],{"class":1700,"line":1712},[1698,2209,1824],{"class":1749},[1698,2211,2212],{"class":1704}," addNumbers: (",[1698,2214,2215],{"class":1765},"Int",[1698,2217,1960],{"class":1704},[1698,2219,2215],{"class":1765},[1698,2221,1769],{"class":1704},[1698,2223,2215],{"class":1765},[1698,2225,1836],{"class":1704},[1698,2227,2228],{"class":1752},"a",[1698,2230,1762],{"class":1704},[1698,2232,2215],{"class":1765},[1698,2234,1960],{"class":1704},[1698,2236,2237],{"class":1752},"b",[1698,2239,1762],{"class":1704},[1698,2241,2215],{"class":1765},[1698,2243,1769],{"class":1704},[1698,2245,2215],{"class":1765},[1698,2247,1849],{"class":1708},[1698,2249,2250,2252],{"class":1700,"line":1719},[1698,2251,1779],{"class":1708},[1698,2253,2254],{"class":1704}," a + b\n",[1698,2256,2257],{"class":1700,"line":1797},[1698,2258,1722],{"class":1704},[1698,2260,2261],{"class":1700,"line":1802},[1698,2262,1806],{"emptyLinePlaceholder":1805},[1698,2264,2265],{"class":1700,"line":1809},[1698,2266,2267],{"class":1715},"\u002F\u002F Types inferred\n",[1698,2269,2270,2272,2275,2277,2279,2281,2283,2285,2288],{"class":1700,"line":1815},[1698,2271,1824],{"class":1749},[1698,2273,2274],{"class":1704}," addNumbers2: (",[1698,2276,2215],{"class":1765},[1698,2278,1960],{"class":1704},[1698,2280,2215],{"class":1765},[1698,2282,1769],{"class":1704},[1698,2284,2215],{"class":1765},[1698,2286,2287],{"class":1704}," = { a, b ",[1698,2289,1709],{"class":1708},[1698,2291,2292,2294],{"class":1700,"line":1821},[1698,2293,1779],{"class":1708},[1698,2295,2254],{"class":1704},[1698,2297,2298],{"class":1700,"line":1852},[1698,2299,1722],{"class":1704},[1698,2301,2302],{"class":1700,"line":1867},[1698,2303,1806],{"emptyLinePlaceholder":1805},[1698,2305,2306],{"class":1700,"line":1872},[1698,2307,2308],{"class":1715},"\u002F\u002F Implicit return\n",[1698,2310,2311,2313,2316,2318,2320,2322,2324,2326,2328],{"class":1700,"line":1877},[1698,2312,1824],{"class":1749},[1698,2314,2315],{"class":1704}," addNumbers3: (",[1698,2317,2215],{"class":1765},[1698,2319,1960],{"class":1704},[1698,2321,2215],{"class":1765},[1698,2323,1769],{"class":1704},[1698,2325,2215],{"class":1765},[1698,2327,2287],{"class":1704},[1698,2329,1709],{"class":1708},[1698,2331,2332],{"class":1700,"line":1883},[1698,2333,2334],{"class":1704},"   a + b\n",[1698,2336,2337],{"class":1700,"line":1909},[1698,2338,1722],{"class":1704},[1698,2340,2342],{"class":1700,"line":2341},15,[1698,2343,1806],{"emptyLinePlaceholder":1805},[1698,2345,2347],{"class":1700,"line":2346},16,[1698,2348,2349],{"class":1715},"\u002F\u002F Shorthand argument names\n",[1698,2351,2353,2355,2358,2360,2362,2364,2366,2368,2371,2373,2376,2378],{"class":1700,"line":2352},17,[1698,2354,1824],{"class":1749},[1698,2356,2357],{"class":1704}," addNumbers4: (",[1698,2359,2215],{"class":1765},[1698,2361,1960],{"class":1704},[1698,2363,2215],{"class":1765},[1698,2365,1769],{"class":1704},[1698,2367,2215],{"class":1765},[1698,2369,2370],{"class":1704}," = { ",[1698,2372,2184],{"class":1749},[1698,2374,2375],{"class":1704}," + ",[1698,2377,2188],{"class":1749},[1698,2379,2380],{"class":1704}," }\n",[1698,2382,2384],{"class":1700,"line":2383},18,[1698,2385,1806],{"emptyLinePlaceholder":1805},[1698,2387,2389],{"class":1700,"line":2388},19,[1698,2390,2391],{"class":1715},"\u002F\u002F Operator Shorthand\n",[1698,2393,2395,2397,2400,2402,2404,2406,2408,2410],{"class":1700,"line":2394},20,[1698,2396,1824],{"class":1749},[1698,2398,2399],{"class":1704}," addNumbers5: (",[1698,2401,2215],{"class":1765},[1698,2403,1960],{"class":1704},[1698,2405,2215],{"class":1765},[1698,2407,1769],{"class":1704},[1698,2409,2215],{"class":1765},[1698,2411,2412],{"class":1704}," = +\n",[2414,2415,2417],"h3",{"id":2416},"how-operator-shorthand-works","How Operator Shorthand Works",[1662,2419,2420,2421,1960,2424,1960,2427,2430,2431,2434],{},"In Swift, standard operators (like ",[1666,2422,2423],{},"+",[1666,2425,2426],{},"-",[1666,2428,2429],{},">"," and ",[1666,2432,2433],{},"\u003C",") are actually built-in functions under the hood.",[1662,2436,2437,2438,2441,2442,2444,2445,2447,2448,2450],{},"Because the explicit type annotation on the left side of ",[1666,2439,2440],{},"addNumbers5"," tells the compiler exactly what kind of function is required (one that takes two ",[1666,2443,2215],{},"s and returns an ",[1666,2446,2215],{},") and the addition operator ",[1666,2449,2423],{}," perfectly matches that exact signature, you can safely pass the operator symbol itself.",[1671,2452,2454],{"id":2453},"capturing-values","Capturing Values",[1662,2456,2457],{},"Closures can \"capture\" (remember and access) variables from the surrounding context where they were created.",[1662,2459,2460,2461,2465],{},"By default, Swift captures values ",[2462,2463,2464],"strong",{},"by reference",". This means the closure modifies the exact same variable that exists outside of it.",[1690,2467,2469],{"className":1692,"code":2468,"language":1311,"meta":1694,"style":1694},"var count = 0\nlet increment = {\n    count += 1\n}\nincrement()\nprint(count) \u002F\u002F 1 (The original variable was changed)\n",[1666,2470,2471,2482,2489,2497,2501,2508],{"__ignoreMap":1694},[1698,2472,2473,2476,2479],{"class":1700,"line":1701},[1698,2474,2475],{"class":1749},"var",[1698,2477,2478],{"class":1704}," count = ",[1698,2480,2481],{"class":2136},"0\n",[1698,2483,2484,2486],{"class":1700,"line":1712},[1698,2485,1824],{"class":1749},[1698,2487,2488],{"class":1704}," increment = {\n",[1698,2490,2491,2494],{"class":1700,"line":1719},[1698,2492,2493],{"class":1704},"    count += ",[1698,2495,2496],{"class":2136},"1\n",[1698,2498,2499],{"class":1700,"line":1797},[1698,2500,1722],{"class":1704},[1698,2502,2503,2506],{"class":1700,"line":1802},[1698,2504,2505],{"class":1752},"increment",[1698,2507,1980],{"class":1704},[1698,2509,2510,2512,2515],{"class":1700,"line":1809},[1698,2511,1886],{"class":1752},[1698,2513,2514],{"class":1704},"(count) ",[1698,2516,2517],{"class":1715},"\u002F\u002F 1 (The original variable was changed)\n",[2414,2519,2521],{"id":2520},"capture-lists","Capture Lists",[1662,2523,2524,2525,2528,2529,2532],{},"If you want the closure to capture a frozen copy of the variable exactly as it was at the moment of creation (",[2462,2526,2527],{},"capture by value","), you use a capture list written in square brackets ",[1666,2530,2531],{},"[ ]",".",[1690,2534,2536],{"className":1692,"code":2535,"language":1311,"meta":1694,"style":1694},"var score = 10\nlet printScore = { [score] in \n    print(\"Score is \\(score)\") \n}\nscore = 20\nprintScore() \u002F\u002F 10 (It captured the old copy)\n",[1666,2537,2538,2548,2560,2582,2586,2594],{"__ignoreMap":1694},[1698,2539,2540,2542,2545],{"class":1700,"line":1701},[1698,2541,2475],{"class":1749},[1698,2543,2544],{"class":1704}," score = ",[1698,2546,2547],{"class":2136},"10\n",[1698,2549,2550,2552,2555,2557],{"class":1700,"line":1712},[1698,2551,1824],{"class":1749},[1698,2553,2554],{"class":1704}," printScore = { [score] ",[1698,2556,1677],{"class":1708},[1698,2558,2559],{"class":1704}," \n",[1698,2561,2562,2564,2566,2569,2571,2574,2576,2579],{"class":1700,"line":1719},[1698,2563,2014],{"class":1752},[1698,2565,1756],{"class":1704},[1698,2567,2568],{"class":1782},"\"Score is ",[1698,2570,1786],{"class":1749},[1698,2572,2573],{"class":1704},"score",[1698,2575,1791],{"class":1749},[1698,2577,2578],{"class":1782},"\"",[1698,2580,2581],{"class":1704},") \n",[1698,2583,2584],{"class":1700,"line":1797},[1698,2585,1722],{"class":1704},[1698,2587,2588,2591],{"class":1700,"line":1802},[1698,2589,2590],{"class":1704},"score = ",[1698,2592,2593],{"class":2136},"20\n",[1698,2595,2596,2599,2602],{"class":1700,"line":1809},[1698,2597,2598],{"class":1752},"printScore",[1698,2600,2601],{"class":1704},"() ",[1698,2603,2604],{"class":1715},"\u002F\u002F 10 (It captured the old copy)\n",[2414,2606,2608],{"id":2607},"memory-management-the-retain-cycle","Memory Management: The Retain Cycle",[1662,2610,2611],{},"Memory management in Swift relies on counting how many things are holding onto an object. As long as someone is keeping a strong grip on an object, it stays alive in memory.",[1662,2613,2614,2615,2618,2619,2622],{},"Imagine two people holding hands so tightly that neither is allowed to leave the room. This exact scenario happens in Swift when a class holds onto a closure and that closure captures ",[1666,2616,2617],{},"self"," (the class itself). They are both keeping each other alive forever. This is called a ",[2462,2620,2621],{},"retain cycle"," or a memory leak.",[1662,2624,2625],{},"To fix this, we have to tell the closure to loosen its grip using a capture list.",[2627,2628,2630,2633],"h4",{"id":2629},"weak-self-the-safe-choice",[1666,2631,2632],{},"[weak self]"," (The Safe Choice)",[1662,2635,2636,2637,2639],{},"Using ",[1666,2638,2632],{}," tells the closure to hold onto the class loosely. It essentially says, \"I will use this class if it is still here, but I will not force it to stay alive.\"",[1662,2641,2642,2643,2645,2646,2649],{},"Because the class might disappear before the closure actually runs, Swift automatically turns ",[1666,2644,2617],{}," into an Optional inside the closure. You must use a question mark ",[1666,2647,2648],{},"?."," or safely unwrap it before using it.",[1690,2651,2653],{"className":1692,"code":2652,"language":1311,"meta":1694,"style":1694},"class NetworkManager {\n    var data = \"Empty\"\n\n    func fetchData() {\n        \u002F\u002F The closure holds 'self' loosely\n        performDownload { [weak self] result in\n            \u002F\u002F We use '?.' because self might have been destroyed by the time this finishes\n            self?.data = result\n            print(\"Data updated!\")\n        }\n    }\n}\n",[1666,2654,2655,2665,2676,2680,2691,2696,2715,2720,2734,2746,2751,2756],{"__ignoreMap":1694},[1698,2656,2657,2660,2663],{"class":1700,"line":1701},[1698,2658,2659],{"class":1749},"class",[1698,2661,2662],{"class":1765}," NetworkManager",[1698,2664,1774],{"class":1704},[1698,2666,2667,2670,2673],{"class":1700,"line":1712},[1698,2668,2669],{"class":1749},"    var",[1698,2671,2672],{"class":1704}," data = ",[1698,2674,2675],{"class":1782},"\"Empty\"\n",[1698,2677,2678],{"class":1700,"line":1719},[1698,2679,1806],{"emptyLinePlaceholder":1805},[1698,2681,2682,2685,2688],{"class":1700,"line":1797},[1698,2683,2684],{"class":1749},"    func",[1698,2686,2687],{"class":1752}," fetchData",[1698,2689,2690],{"class":1704},"() {\n",[1698,2692,2693],{"class":1700,"line":1802},[1698,2694,2695],{"class":1715},"        \u002F\u002F The closure holds 'self' loosely\n",[1698,2697,2698,2701,2704,2707,2710,2713],{"class":1700,"line":1809},[1698,2699,2700],{"class":1752},"        performDownload",[1698,2702,2703],{"class":1704}," { [",[1698,2705,2706],{"class":1749},"weak",[1698,2708,2709],{"class":1749}," self",[1698,2711,2712],{"class":1704},"] result ",[1698,2714,1709],{"class":1708},[1698,2716,2717],{"class":1700,"line":1815},[1698,2718,2719],{"class":1715},"            \u002F\u002F We use '?.' because self might have been destroyed by the time this finishes\n",[1698,2721,2722,2725,2727,2731],{"class":1700,"line":1821},[1698,2723,2724],{"class":1749},"            self",[1698,2726,2648],{"class":1704},[1698,2728,2730],{"class":2729},"srPFp","data",[1698,2732,2733],{"class":1704}," = result\n",[1698,2735,2736,2739,2741,2744],{"class":1700,"line":1852},[1698,2737,2738],{"class":1752},"            print",[1698,2740,1756],{"class":1704},[1698,2742,2743],{"class":1782},"\"Data updated!\"",[1698,2745,2022],{"class":1704},[1698,2747,2748],{"class":1700,"line":1867},[1698,2749,2750],{"class":1704},"        }\n",[1698,2752,2753],{"class":1700,"line":1872},[1698,2754,2755],{"class":1704},"    }\n",[1698,2757,2758],{"class":1700,"line":1877},[1698,2759,1722],{"class":1704},[2627,2761,2763,2766],{"id":2762},"unowned-self-the-strict-promise",[1666,2764,2765],{},"[unowned self]"," (The Strict Promise)",[1662,2768,2636,2769,2771],{},[1666,2770,2765],{}," is also a loose grip, but it comes with a strict promise. It tells Swift, \"I guarantee this class will still be alive when this closure runs.\"",[1662,2773,2774,2775,2777],{},"Because of this promise, Swift does not make ",[1666,2776,2617],{}," an Optional. You can use it directly without a question mark. However, if you break that promise and the class is destroyed before the closure runs, your entire app will crash immediately.",[1690,2779,2781],{"className":1692,"code":2780,"language":1311,"meta":1694,"style":1694},"class UserProfile {\n    var name = \"Pirate\"\n\n    func updateProfile() {\n        \u002F\u002F We promise UserProfile will definitely still exist when this runs\n        loadName { [unowned self] newName in\n            \u002F\u002F No optional unwrapping needed\n            self.name = newName\n        }\n    }\n}\n",[1666,2782,2783,2792,2802,2806,2815,2820,2837,2842,2853,2857,2861],{"__ignoreMap":1694},[1698,2784,2785,2787,2790],{"class":1700,"line":1701},[1698,2786,2659],{"class":1749},[1698,2788,2789],{"class":1765}," UserProfile",[1698,2791,1774],{"class":1704},[1698,2793,2794,2796,2799],{"class":1700,"line":1712},[1698,2795,2669],{"class":1749},[1698,2797,2798],{"class":1704}," name = ",[1698,2800,2801],{"class":1782},"\"Pirate\"\n",[1698,2803,2804],{"class":1700,"line":1719},[1698,2805,1806],{"emptyLinePlaceholder":1805},[1698,2807,2808,2810,2813],{"class":1700,"line":1797},[1698,2809,2684],{"class":1749},[1698,2811,2812],{"class":1752}," updateProfile",[1698,2814,2690],{"class":1704},[1698,2816,2817],{"class":1700,"line":1802},[1698,2818,2819],{"class":1715},"        \u002F\u002F We promise UserProfile will definitely still exist when this runs\n",[1698,2821,2822,2825,2827,2830,2832,2835],{"class":1700,"line":1809},[1698,2823,2824],{"class":1752},"        loadName",[1698,2826,2703],{"class":1704},[1698,2828,2829],{"class":1749},"unowned",[1698,2831,2709],{"class":1749},[1698,2833,2834],{"class":1704},"] newName ",[1698,2836,1709],{"class":1708},[1698,2838,2839],{"class":1700,"line":1815},[1698,2840,2841],{"class":1715},"            \u002F\u002F No optional unwrapping needed\n",[1698,2843,2844,2846,2848,2850],{"class":1700,"line":1821},[1698,2845,2724],{"class":1749},[1698,2847,2532],{"class":1704},[1698,2849,1759],{"class":2729},[1698,2851,2852],{"class":1704}," = newName\n",[1698,2854,2855],{"class":1700,"line":1852},[1698,2856,2750],{"class":1704},[1698,2858,2859],{"class":1700,"line":1867},[1698,2860,2755],{"class":1704},[1698,2862,2863],{"class":1700,"line":1872},[1698,2864,1722],{"class":1704},[2866,2867,2868,2869,2871,2872,2874],"note",{},"Always use ",[1666,2870,2632],{}," as your default choice. It is incredibly safe and prevents crashes. Only reach for ",[1666,2873,2765],{}," when you are absolutely certain the class will outlive the closure and you want to save a few keystrokes on optional unwrapping.",[1671,2876,2878,2879,1791],{"id":2877},"escaping-closures-escaping","Escaping Closures (",[1666,2880,2881],{},"@escaping",[1662,2883,2884,2885,2888,2889,1960,2892,2430,2895,2898],{},"By default, closures in Swift are ",[2462,2886,2887],{},"non-escaping",". This means the compiler guarantees the closure will finish running before the function ends. Closures passed to higher-order functions like ",[1666,2890,2891],{},"map",[1666,2893,2894],{},"filter",[1666,2896,2897],{},"sort"," are non-escaping (these functions are covered on the next page).",[1662,2900,2901,2902,2905,2906,2909,2910,2913],{},"A closure is called ",[2462,2903,2904],{},"escaping"," when it is passed as an argument to a function but is executed ",[2462,2907,2908],{},"after"," that function has already returned. This is almost always used in ",[2462,2911,2912],{},"asynchronous tasks"," like network requests.",[1662,2915,2916,2917,2919,2920,2532],{},"You must explicitly write ",[1666,2918,2881],{}," before the closure type. Swift enforces this because escaping closures can extend the lifetime of objects they capture. Requiring the keyword forces you to acknowledge this explicitly and prompts you to think about capture semantics like ",[1666,2921,2632],{},[1662,2923,2924],{},"Here is an example using a simulated delay to show how it escapes the main function:",[1690,2926,2928],{"className":1692,"code":2927,"language":1311,"meta":1694,"style":1694},"import Foundation\n\nfunc fetchData(completion: @escaping (String) -> Void) {\n    print(\"1. Starting the data fetch...\")\n\n    \u002F\u002F Simulating async work - imagine a real network call here\n    DispatchQueue.main.asyncAfter(deadline: .now() + 2) {\n        \u002F\u002F This closure runs long after the fetchData function has already ended\n        completion(\"3. Here is your downloaded data!\") \u002F\u002F called 2 seconds later\n    }\n\n    \u002F\u002F The function returns here, but the closure runs 2 seconds later.\n    print(\"2. The function has finished running. Waiting for the delay...\")\n}\n\n\u002F\u002F Calling the function\nfetchData { message in\n    print(message)\n}\n\u002F\u002F Console Output:\n\u002F\u002F 1. Starting the data fetch...\n\u002F\u002F 2. The function has finished running. Waiting for the delay...\n\u002F\u002F -- (2 second pause) --\n\u002F\u002F 3. Here is your downloaded data!\n",[1666,2929,2930,2938,2942,2967,2978,2982,2987,3019,3024,3040,3044,3048,3053,3064,3068,3072,3077,3087,3094,3098,3103,3109,3115,3121],{"__ignoreMap":1694},[1698,2931,2932,2935],{"class":1700,"line":1701},[1698,2933,2934],{"class":1708},"import",[1698,2936,2937],{"class":1765}," Foundation\n",[1698,2939,2940],{"class":1700,"line":1712},[1698,2941,1806],{"emptyLinePlaceholder":1805},[1698,2943,2944,2946,2948,2950,2952,2954,2956,2959,2961,2963,2965],{"class":1700,"line":1719},[1698,2945,1668],{"class":1749},[1698,2947,2687],{"class":1752},[1698,2949,1756],{"class":1704},[1698,2951,2103],{"class":1752},[1698,2953,1762],{"class":1704},[1698,2955,2881],{"class":1749},[1698,2957,2958],{"class":1704}," (",[1698,2960,1766],{"class":1765},[1698,2962,1769],{"class":1704},[1698,2964,1969],{"class":1765},[1698,2966,1972],{"class":1704},[1698,2968,2969,2971,2973,2976],{"class":1700,"line":1797},[1698,2970,2014],{"class":1752},[1698,2972,1756],{"class":1704},[1698,2974,2975],{"class":1782},"\"1. Starting the data fetch...\"",[1698,2977,2022],{"class":1704},[1698,2979,2980],{"class":1700,"line":1802},[1698,2981,1806],{"emptyLinePlaceholder":1805},[1698,2983,2984],{"class":1700,"line":1809},[1698,2985,2986],{"class":1715},"    \u002F\u002F Simulating async work - imagine a real network call here\n",[1698,2988,2989,2992,2995,2997,3000,3002,3005,3008,3011,3014,3017],{"class":1700,"line":1815},[1698,2990,2991],{"class":1704},"    DispatchQueue.",[1698,2993,2994],{"class":2729},"main",[1698,2996,2532],{"class":1704},[1698,2998,2999],{"class":1752},"asyncAfter",[1698,3001,1756],{"class":1704},[1698,3003,3004],{"class":1752},"deadline",[1698,3006,3007],{"class":1704},": .",[1698,3009,3010],{"class":1752},"now",[1698,3012,3013],{"class":1704},"() + ",[1698,3015,3016],{"class":2136},"2",[1698,3018,1972],{"class":1704},[1698,3020,3021],{"class":1700,"line":1821},[1698,3022,3023],{"class":1715},"        \u002F\u002F This closure runs long after the fetchData function has already ended\n",[1698,3025,3026,3029,3031,3034,3037],{"class":1700,"line":1852},[1698,3027,3028],{"class":1752},"        completion",[1698,3030,1756],{"class":1704},[1698,3032,3033],{"class":1782},"\"3. Here is your downloaded data!\"",[1698,3035,3036],{"class":1704},") ",[1698,3038,3039],{"class":1715},"\u002F\u002F called 2 seconds later\n",[1698,3041,3042],{"class":1700,"line":1867},[1698,3043,2755],{"class":1704},[1698,3045,3046],{"class":1700,"line":1872},[1698,3047,1806],{"emptyLinePlaceholder":1805},[1698,3049,3050],{"class":1700,"line":1877},[1698,3051,3052],{"class":1715},"    \u002F\u002F The function returns here, but the closure runs 2 seconds later.\n",[1698,3054,3055,3057,3059,3062],{"class":1700,"line":1883},[1698,3056,2014],{"class":1752},[1698,3058,1756],{"class":1704},[1698,3060,3061],{"class":1782},"\"2. The function has finished running. Waiting for the delay...\"",[1698,3063,2022],{"class":1704},[1698,3065,3066],{"class":1700,"line":1909},[1698,3067,1722],{"class":1704},[1698,3069,3070],{"class":1700,"line":2341},[1698,3071,1806],{"emptyLinePlaceholder":1805},[1698,3073,3074],{"class":1700,"line":2346},[1698,3075,3076],{"class":1715},"\u002F\u002F Calling the function\n",[1698,3078,3079,3082,3085],{"class":1700,"line":2352},[1698,3080,3081],{"class":1752},"fetchData",[1698,3083,3084],{"class":1704}," { message ",[1698,3086,1709],{"class":1708},[1698,3088,3089,3091],{"class":1700,"line":2383},[1698,3090,2014],{"class":1752},[1698,3092,3093],{"class":1704},"(message)\n",[1698,3095,3096],{"class":1700,"line":2388},[1698,3097,1722],{"class":1704},[1698,3099,3100],{"class":1700,"line":2394},[1698,3101,3102],{"class":1715},"\u002F\u002F Console Output:\n",[1698,3104,3106],{"class":1700,"line":3105},21,[1698,3107,3108],{"class":1715},"\u002F\u002F 1. Starting the data fetch...\n",[1698,3110,3112],{"class":1700,"line":3111},22,[1698,3113,3114],{"class":1715},"\u002F\u002F 2. The function has finished running. Waiting for the delay...\n",[1698,3116,3118],{"class":1700,"line":3117},23,[1698,3119,3120],{"class":1715},"\u002F\u002F -- (2 second pause) --\n",[1698,3122,3124],{"class":1700,"line":3123},24,[1698,3125,3126],{"class":1715},"\u002F\u002F 3. Here is your downloaded data!\n",[2414,3128,3130,3131,2375,3133],{"id":3129},"the-golden-rule-escaping-weak-self","The Golden Rule: ",[1666,3132,2881],{},[1666,3134,2632],{},[1662,3136,3137,3138,2430,3140,3142],{},"In real-world iOS development, you will almost always see ",[1666,3139,2881],{},[1666,3141,2632],{}," used together.",[1662,3144,3145,3148],{},[2462,3146,3147],{},"Why?"," Escaping closures are usually used for tasks that take time, like downloading data from the internet. Imagine a user opens a profile screen, the app starts downloading their profile picture (an escaping closure), but the user gets bored and immediately hits the \"Back\" button to leave the screen.",[3150,3151,3152,3162],"ul",{},[3153,3154,3155,3161],"li",{},[2462,3156,3157,3158,3160],{},"Without ",[1666,3159,2632],{},":"," The closure stubbornly keeps the entire profile screen alive in memory just so it has somewhere to put the picture when the download finally finishes. This causes a memory leak.",[3153,3163,3164,3169,3170,3172,3173,3176],{},[2462,3165,3166,3167,3160],{},"With ",[1666,3168,2632],{}," The closure checks if the screen still exists. Because the user left, ",[1666,3171,2617],{}," safely becomes ",[1666,3174,3175],{},"nil",". The closure realizes the screen is gone, tosses the downloaded picture in the trash and gracefully finishes without leaking memory.",[1662,3178,3179],{},"Here is what that looks like in practice:",[1690,3181,3183],{"className":1692,"code":3182,"language":1311,"meta":1694,"style":1694},"class ProfileViewController {\n    var profileImage: String = \"placeholder\"\n    \n    func loadProfile() {\n        \u002F\u002F The closure is escaping, so we MUST use [weak self]\n        downloadImage(url: \"[piratedev.com\u002Favatar](https:\u002F\u002Fpiratedev.com\u002Favatar)\") { [weak self] downloadedImage in\n            \n            \u002F\u002F We use 'guard let' to safely check if the screen is still alive\n            guard let aliveSelf = self else {\n                print(\"Screen was closed before download finished. Aborting.\")\n                return \n            }\n            \n            \u002F\u002F If we get here, the user is still on the screen!\n            aliveSelf.profileImage = downloadedImage\n            print(\"Profile picture updated!\")\n        }\n    }\n}\n",[1666,3184,3185,3194,3209,3214,3223,3228,3254,3259,3264,3282,3294,3301,3306,3310,3315,3326,3337,3341,3345],{"__ignoreMap":1694},[1698,3186,3187,3189,3192],{"class":1700,"line":1701},[1698,3188,2659],{"class":1749},[1698,3190,3191],{"class":1765}," ProfileViewController",[1698,3193,1774],{"class":1704},[1698,3195,3196,3198,3201,3203,3206],{"class":1700,"line":1712},[1698,3197,2669],{"class":1749},[1698,3199,3200],{"class":1704}," profileImage: ",[1698,3202,1766],{"class":1765},[1698,3204,3205],{"class":1704}," = ",[1698,3207,3208],{"class":1782},"\"placeholder\"\n",[1698,3210,3211],{"class":1700,"line":1719},[1698,3212,3213],{"class":1704},"    \n",[1698,3215,3216,3218,3221],{"class":1700,"line":1797},[1698,3217,2684],{"class":1749},[1698,3219,3220],{"class":1752}," loadProfile",[1698,3222,2690],{"class":1704},[1698,3224,3225],{"class":1700,"line":1802},[1698,3226,3227],{"class":1715},"        \u002F\u002F The closure is escaping, so we MUST use [weak self]\n",[1698,3229,3230,3233,3235,3237,3239,3242,3245,3247,3249,3252],{"class":1700,"line":1809},[1698,3231,3232],{"class":1752},"        downloadImage",[1698,3234,1756],{"class":1704},[1698,3236,1953],{"class":1752},[1698,3238,1762],{"class":1704},[1698,3240,3241],{"class":1782},"\"[piratedev.com\u002Favatar](https:\u002F\u002Fpiratedev.com\u002Favatar)\"",[1698,3243,3244],{"class":1704},") { [",[1698,3246,2706],{"class":1749},[1698,3248,2709],{"class":1749},[1698,3250,3251],{"class":1704},"] downloadedImage ",[1698,3253,1709],{"class":1708},[1698,3255,3256],{"class":1700,"line":1815},[1698,3257,3258],{"class":1704},"            \n",[1698,3260,3261],{"class":1700,"line":1821},[1698,3262,3263],{"class":1715},"            \u002F\u002F We use 'guard let' to safely check if the screen is still alive\n",[1698,3265,3266,3269,3272,3275,3277,3280],{"class":1700,"line":1852},[1698,3267,3268],{"class":1708},"            guard",[1698,3270,3271],{"class":1749}," let",[1698,3273,3274],{"class":1704}," aliveSelf = ",[1698,3276,2617],{"class":1749},[1698,3278,3279],{"class":1708}," else",[1698,3281,1774],{"class":1704},[1698,3283,3284,3287,3289,3292],{"class":1700,"line":1867},[1698,3285,3286],{"class":1752},"                print",[1698,3288,1756],{"class":1704},[1698,3290,3291],{"class":1782},"\"Screen was closed before download finished. Aborting.\"",[1698,3293,2022],{"class":1704},[1698,3295,3296,3299],{"class":1700,"line":1872},[1698,3297,3298],{"class":1708},"                return",[1698,3300,2559],{"class":1704},[1698,3302,3303],{"class":1700,"line":1877},[1698,3304,3305],{"class":1704},"            }\n",[1698,3307,3308],{"class":1700,"line":1883},[1698,3309,3258],{"class":1704},[1698,3311,3312],{"class":1700,"line":1909},[1698,3313,3314],{"class":1715},"            \u002F\u002F If we get here, the user is still on the screen!\n",[1698,3316,3317,3320,3323],{"class":1700,"line":2341},[1698,3318,3319],{"class":1704},"            aliveSelf.",[1698,3321,3322],{"class":2729},"profileImage",[1698,3324,3325],{"class":1704}," = downloadedImage\n",[1698,3327,3328,3330,3332,3335],{"class":1700,"line":2346},[1698,3329,2738],{"class":1752},[1698,3331,1756],{"class":1704},[1698,3333,3334],{"class":1782},"\"Profile picture updated!\"",[1698,3336,2022],{"class":1704},[1698,3338,3339],{"class":1700,"line":2352},[1698,3340,2750],{"class":1704},[1698,3342,3343],{"class":1700,"line":2383},[1698,3344,2755],{"class":1704},[1698,3346,3347],{"class":1700,"line":2388},[1698,3348,1722],{"class":1704},[3350,3351,3352],"style",{},"html pre.shiki code .sp1VO, html code.shiki .sp1VO{--shiki-light:#202020;--shiki-default:#202020;--shiki-dark:#D4D4D4}html pre.shiki code .swpH1, html code.shiki .swpH1{--shiki-light:#A2399E;--shiki-default:#A2399E;--shiki-dark:#C586C0}html pre.shiki code .spVVU, html code.shiki .spVVU{--shiki-light:#5E7D45;--shiki-default:#5E7D45;--shiki-dark:#6A9955}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sLOIA, html code.shiki .sLOIA{--shiki-light:#1F5FC4;--shiki-default:#1F5FC4;--shiki-dark:#569CD6}html pre.shiki code .ssLDM, html code.shiki .ssLDM{--shiki-light:#8A5A00;--shiki-default:#8A5A00;--shiki-dark:#DCDCAA}html pre.shiki code .sgt_h, html code.shiki .sgt_h{--shiki-light:#127A86;--shiki-default:#127A86;--shiki-dark:#4EC9B0}html pre.shiki code .sNJ0_, html code.shiki .sNJ0_{--shiki-light:#B2471A;--shiki-default:#B2471A;--shiki-dark:#CE9178}html pre.shiki code .sANI1, html code.shiki .sANI1{--shiki-light:#3C7A33;--shiki-default:#3C7A33;--shiki-dark:#B5CEA8}html pre.shiki code .srPFp, html code.shiki .srPFp{--shiki-light:#2B4A6F;--shiki-default:#2B4A6F;--shiki-dark:#9CDCFE}",{"title":1694,"searchDepth":1712,"depth":1712,"links":3354},[3355,3357,3358,3359,3362,3366],{"id":1673,"depth":1712,"text":3356},"Closure Syntax (The in keyword)",{"id":1725,"depth":1712,"text":1726},{"id":1928,"depth":1712,"text":1929},{"id":2177,"depth":1712,"text":2178,"children":3360},[3361],{"id":2416,"depth":1719,"text":2417},{"id":2453,"depth":1712,"text":2454,"children":3363},[3364,3365],{"id":2520,"depth":1719,"text":2521},{"id":2607,"depth":1719,"text":2608},{"id":2877,"depth":1712,"text":3367,"children":3368},"Escaping Closures (@escaping)",[3369],{"id":3129,"depth":1719,"text":3370},"The Golden Rule: @escaping + [weak self]","Closures are self-contained blocks of code that do not require the func keyword or a formal name. They can be assigned to variables, passed as arguments to other functions, or returned from other functions. They are similar to \"lambdas\" or \"blocks\" in other programming languages.","md",null,{},{"title":1389,"description":3371},"CDfm9KNYxaSFOujLDhmsTaAS8Rtt9rLMLzOSyaxlHmg",[3378,3379],{"title":1379,"path":1380,"stem":1381,"children":-1},{"title":1393,"path":1394,"stem":1395,"children":-1},1795950230817,"75ac84ae-01e6-4412-8845-3819ee080b2f"]