bynk-std 0.434.0

The Bynk standard library's first-party sources as data: the `bynk` surface, the Bynk-written commons, the `bynk.cloudflare` platform adapter, and their per-platform TypeScript bindings.
Documentation
commons bynk.map {
	uses bynk.list

	---
	Returns the values of `m`, one per key (order follows `m.keys()`).
	---
	fn values[K, V](m: Map[K, V]) -> List[V] {
		let init: List[V] = List.empty()
		reverse(m.keys().fold(init, (acc, k) => match m.get(k) {
			Some(v) => acc.prepend(v),
			None => acc,
		}))
	}

	---
	True if `m` has an entry for `key`.
	---
	fn contains[K, V](m: Map[K, V], key: K) -> Bool {
		match m.get(key) {
			Some(v) => true,
			None => false,
		}
	}

	---
	Returns the value `m` holds for `key`, or `fallback` if there is none.
	---
	fn getOr[K, V](m: Map[K, V], key: K, fallback: V) -> V {
		match m.get(key) {
			Some(v) => v,
			None => fallback,
		}
	}
}