You have a Point with integer coordinates x and y. Create a map m with key type Point (or equivalent) and value type string. Insert "Hello" at position (42, 5).
Point = Struct.new(:x, :y) m = {Point.new(42, 5) => "Hello"}
import "dart:math";
Map<Point, String> m = {}; m[Point(42, 5)] = "Hello";
m := map[Point]string{} p := Point{x: 42, y: 5} m[p] = "Hello"
m = dict() p = Point(x=42, y=5) m[p] = 'Hello'
from collections import namedtuple
Point = namedtuple('Point', 'x y') p = Point(42, 5) m = {p: "Hello"}
use std::collections::HashMap;
let mut map: HashMap<Point, String> = HashMap::new(); map.insert(Point { x: 42, y: 5 }, "Hello".into());
No security, no password. Other people might choose the same nickname.