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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

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/nym-moultest123/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
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

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

Param

Command

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

Result