Documentation

ToCslib.Control.Loop.Attr

The loop_norm simp set #

This module declares the loop_norm simp attribute. ToCslib.Control.Loop.Basic registers its rules, which rewrite the forIn loops that Id.run do elaborates to into folds over lists.

Simplification procedure

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Simp set that rewrites effect-free for loops into folds over lists: Id.run, legacy ranges [a:b] as List.range', bodies that only yield as List.foldl, and the monad laws that expose those bodies.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For