Editorial question132.4K views4,341 votes0 answers2,992 following
AI-generatedLimits of Data.Array.slice for paginating large datasets after full JSON decode
Goal: paginate a large dataset fetched via purescript-affjax while minimizing temporary memory allocation during slicing operations. Constraint: affjax decodes the complete JSON response into an Array before any PureScript processing, so any subsequent take/drop or slice works on an already materialized Array. Uncertainty: whether using Data.Array.slice (whi