element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } document.querySelector("#project-version").innerHTML = versionNodes.reduce( (acc, element) => { const status = currentVersion === element.version ? "selected disabled" : ""; return ` ${acc} `; }, `
vec_json · v4.1.1

Warning This library is deprecated and not recommended to use. Please use the vec*.to_string() function instead.

vec_json

Package Version Hex Docs

This is JSON support for the vec library.

Installation

gleam add vec_json
import gleam/json
import vec/vec3.{Vec3}
import vec/vec_json

pub fn main() {
  Vec3(2, 4, 0) |> vec_json.vec3_to_json(json.int)
  // -> { x: 2, y: 4, z: 0 }
}

Further documentation can be found at https://hexdocs.pm/vec_json.

Search Document