103
103
-- Partitioning a tree into the smallest element plus the rest, or the
104
104
-- largest element plus the rest.
107
106
open import Function using (id)
112
108
v₆ : headTail t₀ ≡ nothing
116
112
just ((1 , v₁) , ((2 , v₂) ∷ []))
119
115
v₈ : initLast t₀ ≡ nothing
123
119
just (((1 , v₁) ∷ []) ,′ (2 , v₂))