Strings
Content created by Fredrik Bakke, Fernando Chu and Egbert Rijke.
Created on 2023-04-27.
Last modified on 2023-10-21.
module primitives.strings where
Imports
open import elementary-number-theory.natural-numbers open import foundation.booleans open import foundation.dependent-pair-types open import foundation.maybe open import foundation.universe-levels open import lists.lists open import primitives.characters
Idea
The String
type represents strings. Agda provides primitive functions to
manipulate them. Strings are written between double quotes, e.g.
"agda-unimath"
.
Definitions
postulate String : UU lzero {-# BUILTIN STRING String #-} primitive primStringUncons : String → Maybe' (Σ Char (λ _ → String)) primStringToList : String → list Char primStringFromList : list Char → String primStringAppend : String → String → String primStringEquality : String → String → bool primShowChar : Char → String primShowString : String → String primShowNat : ℕ → String
Recent changes
- 2023-10-21. Egbert Rijke and Fredrik Bakke. Formatting of postulates (#870).
- 2023-05-01. Fredrik Bakke. Refactor 2, the sequel to refactor (#581).
- 2023-04-27. Fernando Chu, Fernando Chu, Fernando Chu and Fredrik Bakke. Reflection and solvers (#571).