summaryrefslogtreecommitdiff
path: root/src/Thinning.idr
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2023-06-06 12:25:26 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2023-06-06 12:25:26 +0100
commitbf07a9fe3ee4ff06fe186e33221f7f91871b9217 (patch)
treeac9597b4ad38a354aec3d6edc8b712179bd23b9c /src/Thinning.idr
parentd5f8497dbb6de72d9664f48d6acbc9772de77be3 (diff)
Write an encoding for data types.
Diffstat (limited to 'src/Thinning.idr')
-rw-r--r--src/Thinning.idr5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Thinning.idr b/src/Thinning.idr
index a79f0f5..a9b724d 100644
--- a/src/Thinning.idr
+++ b/src/Thinning.idr
@@ -31,6 +31,11 @@ keep Id = Id
keep (Drop thin) = Keep (Drop thin)
keep (Keep thin) = Keep (Keep thin)
+public export
+empty : (sx : SnocList a) -> [<] `Thins` sx
+empty [<] = Id
+empty (sx :< x) = Drop (empty sx)
+
-- Operations ------------------------------------------------------------------
public export