Module
Annoy.ST
- Package
- purescript-annoy
- Repository
- Kamirus/purescript-annoy
#build Source
build :: forall o t s. Nat s => Pos t => { trees :: t | o } -> (forall h. Eff (st :: ST h) (STAnnoy h s)) -> Annoy s
build { trees } m
executes m
which creates Annoy and adds vectors, then builds it using trees
(more info in original annoy)
a = build { trees: d1 } (do
a <- new { size: d2 , metric: Manhattan }
push (1.0 +> 2.0 +> empty) a
push (3.0 +> 4.0 +> empty) a
push (5.0 +> 6.0 +> empty) a
pure a)
- Modules
- Annoy
- Annoy.
ST - Annoy.
Types - Annoy.
Unsafe