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
|
||||
toSnocList : Telescope {tm, _} -> SnocList (Exists tm)
|
||||
toSnocList : Telescope tm _ _ -> SnocList (Exists tm)
|
||||
toSnocList [<] = [<]
|
||||
toSnocList (tel :< t) = toSnocList tel :< Evidence _ t
|
||||
|
||||
private
|
||||
toListAcc : Telescope {tm, _} -> List (Exists tm) -> List (Exists tm)
|
||||
toListAcc : Telescope tm _ _ -> List (Exists tm) -> List (Exists tm)
|
||||
toListAcc [<] acc = acc
|
||||
toListAcc (tel :< t) acc = toListAcc tel (Evidence _ t :: acc)
|
||||
|
||||
export %inline
|
||||
toList : Telescope {tm, _} -> List (Exists tm)
|
||||
toList : Telescope tm _ _ -> List (Exists tm)
|
||||
toList tel = toListAcc tel []
|
||||
|
||||
export %inline
|
||||
toSnocList' : Telescope' {a, _} -> SnocList a
|
||||
toSnocList' : Telescope' a _ _ -> SnocList a
|
||||
toSnocList' = map snd . toSnocList
|
||||
|
||||
export %inline
|
||||
toList' : Telescope' {a, _} -> List a
|
||||
toList' : Telescope' a _ _ -> List a
|
||||
toList' = map snd . toList
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue