fiddling
This commit is contained in:
parent
25f4923fac
commit
d912614d7d
1 changed files with 5 additions and 5 deletions
|
@ -37,25 +37,25 @@ Context' a = Context (\_ => a)
|
||||||
|
|
||||||
|
|
||||||
export
|
export
|
||||||
toSnocList : Telescope {tm, _} -> SnocList (Exists tm)
|
toSnocList : Telescope tm _ _ -> SnocList (Exists tm)
|
||||||
toSnocList [<] = [<]
|
toSnocList [<] = [<]
|
||||||
toSnocList (tel :< t) = toSnocList tel :< Evidence _ t
|
toSnocList (tel :< t) = toSnocList tel :< Evidence _ t
|
||||||
|
|
||||||
private
|
private
|
||||||
toListAcc : Telescope {tm, _} -> List (Exists tm) -> List (Exists tm)
|
toListAcc : Telescope tm _ _ -> List (Exists tm) -> List (Exists tm)
|
||||||
toListAcc [<] acc = acc
|
toListAcc [<] acc = acc
|
||||||
toListAcc (tel :< t) acc = toListAcc tel (Evidence _ t :: acc)
|
toListAcc (tel :< t) acc = toListAcc tel (Evidence _ t :: acc)
|
||||||
|
|
||||||
export %inline
|
export %inline
|
||||||
toList : Telescope {tm, _} -> List (Exists tm)
|
toList : Telescope tm _ _ -> List (Exists tm)
|
||||||
toList tel = toListAcc tel []
|
toList tel = toListAcc tel []
|
||||||
|
|
||||||
export %inline
|
export %inline
|
||||||
toSnocList' : Telescope' {a, _} -> SnocList a
|
toSnocList' : Telescope' a _ _ -> SnocList a
|
||||||
toSnocList' = map snd . toSnocList
|
toSnocList' = map snd . toSnocList
|
||||||
|
|
||||||
export %inline
|
export %inline
|
||||||
toList' : Telescope' {a, _} -> List a
|
toList' : Telescope' a _ _ -> List a
|
||||||
toList' = map snd . toList
|
toList' = map snd . toList
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue