Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

fenwickdemo/v0 package

Overview

Package fenwickdemo is a small gnoweb demo of the Binary Indexed Tree provided by the p/moul/x/daily/fenwick(/p/moul/x/daily/fenwick/v0) library: prefix sums, range queries, the internal ranges that make the structure legible, and the weighted draw that is the reason to use one.

It contains no tree logic of its own. Stateless, so Render is deterministic: every figure below is computed from the fixed tables at the top of this file, never from chain state, which is what lets an example test pin the page.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Example
1Render("") / Render("/") -> the full demo

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/fenwickdemo/v0.Render()"

Result