kraklin / elm-debug-parser / DebugParser.Path


type Path

Path to uniquely identify nested expandable value. It is used to e.g. toggle specific expandable value, so you can expand and collapse it.

initPath : Path

Initial path. It is used as the top level starting point

indexFromPath : Path -> Basics.Int

Extracts index of nested value from it's path

mapValuesWithPath : Path -> (Path -> a -> b) -> List a -> List b

Useful if you want to render nested values and you would like to make them clickable. Think of this as List.mapIndex but with Path instead of index.

toggleValueByPath : Path -> DebugParser.ElmValue.ElmValue -> DebugParser.ElmValue.ElmValue

Given a path and a top level value you can expand and collapse nested expandable values.