ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P57

Description

Some solutions to Problems.P57 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

construct :: Ord a => [a] -> Tree a Source #

Construct a binary search tree from a list of ordered elements.

addedTo :: Ord a => a -> Tree a -> Tree a Source #

Return a binary search tree with an element added to another binary search tree.