Order Preserving Section Mapping

Map a sectioned API response as a list of (title, items) in the order it arrived, never by reading result[0] and result[1] into named fields — a signed-in account is recorded here as getting an extra section pushed in front, and any such shift mislabels every section after it and drops the last one with no error. Assume the set and order may also vary by locale or region, and capture two responses to find out. Use when modelling a home feed or browse screen made of shelves, or when a screen shows the right content under the wrong headings for some users only.

maxrave-dev 8323f78 5.5 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/order-preserving-section-mapping commit 8323f78c3b

Frequently asked questions

npx skillmds@latest add maxrave-dev/order-preserving-section-mapping