Documentation

Batteries.Data.String.Legacy

Legacy implementations of String operations #

This file includes old definitions of String functions that were downstreamed from core to prevent Batteries.Data.String.Lemmas from breaking.

@[irreducible, specialize #[]]
def String.Legacy.mapAux (f : CharChar) (i : Pos.Raw) (s : String) :

Implementation of String.Legacy.map.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[inline]
    def String.Legacy.map (f : CharChar) (s : String) :

    Applies the function f to every character in a string, returning a string that contains the resulting characters.

    This is an old implementation, preserved here for users of the lemmas in Batteries.Data.String.Lemmas. Its runtime behavior is equivalent to that of String.map.

    Examples:

    Equations
    Instances For