PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/nt/bptree/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
nt / bptree
Files
8 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/nt/bptree/v0
gno
0.9

Files (8)

  • README.mdmarkdown
  • gnomod.tomltoml
  • doc.gnogno
  • node.gnogno
  • tree.gnogno
  • example_test.gnogno
  • tree_test.gnogno
  • PLAN.mdmarkdown
  • example_test.gnogno
    1package bptree23// ExampleNew shows NewBPTree32() and adding a value4func ExampleNew() {5	var tree *BPTree6	tree = NewBPTree32()7	tree.Set("key0", "value0")89	var updated bool10	updated = tree.Set("key1", "value1")11	println(updated, tree.Size())1213	// Output:14	// false 215}1617// ExampleUpdate shows NewBPTree32() and updating a value18func ExampleUpdate() {19	var tree *BPTree20	tree = NewBPTree32()21	tree.Set("key0", "value0")2223	var updated bool24	updated = tree.Set("key0", "new_value0")25	println(updated, tree.Size())2627	// Output:28	// true 129}3031// ExampleZeroValue shows updating the zero value of a BPTree without NewBPTree32()32func ExampleZeroValue() {33	var tree BPTree34	tree.Set("key0", "value0")35	tree.Set("key1", "value1")3637	var updated bool38	updated = tree.Set("key2", "value2")39	println(updated, tree.Size())4041	// Output:42	// false 343}44

    Functions

    not supported for pure packages by the node (vm/qfuncs)

    Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.