Skip to content
/ hs-btree Public

binary tree reference haskell (based on lists)

Notifications You must be signed in to change notification settings

schbm/hs-btree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

hs-btree

Binary tree structure in haskell (based on list operations). The operations could be better implemented using recursion.

For reference only!

example usage

import qualified BinarySearchTree
 as Set (T, empty, insert, fromList, toList, member, delete)

t1 = Set.insert 1 (Set.insert 2 Set.empty)

t2 = Set.fromList [2,3,1]

Set.member 3 t1

False

Set.insert 3 t1 == t2

True

(t1 <> t2) == t2

True

About

binary tree reference haskell (based on lists)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published