kraklin/elm-debug-parser/1.0.0

NOTE: the latest version is 2.0.0

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.

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

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.

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