[{"data":1,"prerenderedAt":240},["ShallowReactive",2],{"/dict/replace-item":3,"/dict/replace-item-surround":229},{"id":4,"title":5,"body":6,"description":195,"extension":196,"meta":197,"navigation":216,"path":225,"seo":226,"stem":227,"__hash__":228},"content/dict/replace-item.md","NetLogo Dictionary: replace-item",{"type":7,"value":8,"toc":184},"minimark",[9],[10,11,16,35,66,73,84,90],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","replace-item","region",[17,18,20],"h3",{"id":19},"replace-item10",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#replace-item","doc-noteref","Reference to replace-item","\nreplace-item\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n1.0\n",[36,37,41],"h4",{"id":38,"className":39},"replace-item-index-list-valuereplace-item-index-string1-string2",[40],"section-heading",[21,42,46,58],{"className":43,"href":45},[44],"section-anchor","#replace-item-index-list-valuereplace-item-index-string1-string2",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54],"p",{},"replace-item ",[55,56,57],"em",{},"index list value",[28,59,61],{"className":60},[49],[51,62,53,63],{},[55,64,65],{},"index string1 string2",[51,67,68,69,72],{},"On a list, replaces an item in that list. ",[55,70,71],{},"index"," is the index\nof the item to be replaced, starting with 0. (The 6th item in a\nlist would have an index of 5.) Note that “replace-item”\nis used in conjunction with “set” to change a list.",[51,74,75,76,79,80,83],{},"Likewise for a string, but the given character of ",[55,77,78],{},"string1","removed and the contents of ",[55,81,82],{},"string2"," spliced in instead.",[51,85,86,87,89],{},"If ",[55,88,71],{}," is fractional, it will be rounded down to\nthe nearest integer (4.5 becomes 4, 10.9 becomes 10).",[91,92,93],"pre",{},[94,95,96,102,103,102,107,112,113,102,116,102,120,102,124,128,129,133,136,112,141,102,144,102,147,102,150,153,154,156,102,159,102,162,102,166,102,171,175,177,102,180],"code",{},[28,97,101],{"className":98},[99,100],"token","command","show"," ",[28,104,14],{"className":105},[99,106],"reporter",[28,108,111],{"className":109},[99,110],"number","2"," [",[28,114,111],{"className":115},[99,110],[28,117,119],{"className":118},[99,110],"7",[28,121,123],{"className":122},[99,110],"4",[28,125,127],{"className":126},[99,110],"5","] ",[28,130,132],{"className":131},[99,110],"15",[134,135],"br",{},[28,137,140],{"className":138},[99,139],"variable","=>",[28,142,111],{"className":143},[99,110],[28,145,119],{"className":146},[99,110],[28,148,132],{"className":149},[99,110],[28,151,127],{"className":152},[99,110],"]",[134,155],{},[28,157,101],{"className":158},[99,100],[28,160,14],{"className":161},[99,106],[28,163,165],{"className":164},[99,110],"1",[28,167,170],{"className":168},[99,169],"string","\"cat\"",[28,172,174],{"className":173},[99,169],"\"are\"",[134,176],{},[28,178,140],{"className":179},[99,139],[28,181,183],{"className":182},[99,169],"\"caret\"",{"title":185,"searchDepth":186,"depth":187,"links":188},"",5,3,[189],{"id":19,"depth":187,"text":190,"children":191},"\nreplace-item\n\n1.0\n",[192],{"id":38,"depth":193,"text":194},4,"replace-item index list valuereplace-item index string1 string2","Documentation for the replace-item primitive.","md",{"source":198,"metadataOutputPath":199,"projectConfig":200,"language":208,"inheritFrom":217,"output":216,"version":201,"layout":218,"dictionaryDisplayName":219,"dictionaryHomeDirectory":220,"indexFileURI":221,"currentItemId":14,"currentItemLabel":14,"primRoot":222,"icon":223,"assetsRoot":224},"autogen/dict/replace-item.md","content/dict/replace-item.metadata.yaml",{"version":201,"projectRoot":202,"scanRoot":203,"outputRoot":204,"defaults":205,"engine":211,"partials":212,"dedupeIdenticalDiskWrites":216},"7.0.4",".","autogen","content",{"inheritFrom":206,"language":208,"output":209,"extension":196,"title":210,"version":201},[207],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":213,"extensions":214},[202],[215,196],"mustache",true,[207],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/replace-item",{"title":5,"description":195},"dict/replace-item","VIiGqy9jtbBFJV3ssy9nHRjybo5XSoiI7RYtt_ZuPzc",[230,235],{"title":231,"path":232,"stem":233,"description":234},"NetLogo Dictionary: repeat","/dict/repeat","dict/repeat","Documentation for the repeat primitive.",{"title":236,"path":237,"stem":238,"description":239},"NetLogo Dictionary: report","/dict/report","dict/report","Documentation for the report primitive.",1777657834141]