Debian Codegraph @

src/Data/Vec/Show.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Showing vectors
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 module Data.Vec.Show where
10
11 import Data.List.Show as List using (show)
12 open import Data.String.Base using (String)
13 open import Data.Vec.Base using (Vec; toList)
14 open import Function.Base using (_∘_)
15
16 show : ∀ {a} {A : Set a} {n} → (A → String) → (Vec A n → String)
17 show s = List.show s ∘ toList