// Runnable Veko tour: pipes, UFCS dot-chains, closures, and JSON
// Track A (ORO VM) : veko run examples/hello.vk
// Track A (.vko) : veko compile --vko examples/hello.vk -o dist/hello.vko ; veko run dist/hello.vko
// Track B (Wasm 3) : veko run --wasm examples/hello.vk
// Track C (Native) : veko compile --native examples/hello.vk -o dist/hello.exe ; ./dist/hello.exe
// Self-host (veko1): veko compile --vko bootstrap/veko1/src/main.vk -o dist/veko1.vko ; veko run dist/veko1.vko -- --vko examples/hello.vk -o dist/hello_s1.vko
use [j = json, s = strings]
raw-json = '[{"url": " https://a.trustnode.sh ", "active": true}, {"url": "https://off.invalid", "active": false}, {"url": "https://b.trustnode.sh", "active": true}]'
active-urls = raw-json
\ j/decode
\ filter fn [n] [n.active]
\ map fn [n] [n.url.trim]
println (s/join active-urls ', ')
active-urls