Utils #
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- val.intAsString = (↑val.toFin).intAsString
Instances For
Equations
- String.instCoeSubstring_regex = { coe := fun (s : String) => s.toSubstring }
starts string m
at codepoint i
in s
Equations
- s.startsAtCodepoint m i = if i + m.length ≤ s.length then let s := s.toSubstring.drop i; s.toString.startsWith m else false
Instances For
compute the byte position of the codepoint position p
in s
Equations
- s.toBytePosition p = { byteIdx := { data := List.take p s.data }.utf8ByteSize }
Instances For
make Substring of String
Equations
- s.toSpan startPos stopPos = { str := s, startPos := s.toBytePosition startPos, stopPos := s.toBytePosition stopPos }
Instances For
Equations
- One or more equations did not get rendered due to their size.