@hackage / Focus

Tools for focusing in on locations within numbers

Latest0.1.2

About

Metadata

  • Last updated , by NateSoares
  • License MIT
  • Maintained by: nate@natesoares.com

  • Lottery factor: 0

Links

Installation

Readme

Focuses are lists of numbers where longer lists are treated as focuses on their parent lists. As such, `Focus []` is considered "unfocused" (it is EQ to all focuses), `Focus [1, 1]` is EQ to `Focus [1, 1, 3]` because their roots are equal, and so on. This isn't useful for testing true equality, but it is quite useful for traversing and pruning indexed rose trees from one locus to another.