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

disjointsetdemo/v0 package

Overview

Package disjointsetdemo is a small gnoweb demo of the union-find structure provided by the p/moul/x/daily/disjointset(/p/moul/x/daily/disjointset/v0) library: it merges a fixed list of pairs and shows the resulting partition.

It contains no union-find logic of its own. Stateless, so Render is deterministic — and the library's Partition is order-independent, which is what makes the output safe to pin.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

Param

Command

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

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/moul/x/daily/disjointsetdemo/v0, for example a function call with arguments.