From cac3386eb2c390c6762f5bdbd1135b3650826b35 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 3 Feb 2025 12:39:19 +0000 Subject: [PATCH] v1.0.0 --- src/gleam/javascript/map.gleam | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/gleam/javascript/map.gleam diff --git a/src/gleam/javascript/map.gleam b/src/gleam/javascript/map.gleam deleted file mode 100644 index 6ae8f69..0000000 --- a/src/gleam/javascript/map.gleam +++ /dev/null @@ -1,32 +0,0 @@ -/// The JavaScript `Map` type, a **mutable** collection of keys and values. -/// -/// Most the time you should use the `Dict` type from `gleam/dict` in the Gleam -/// standard library. This type may still be useful for JavaScript interop. -/// -/// For further information view the MDN documentation: -/// -/// -pub type Map(key, value) - -/// Create a new `Map` with no contained values. -/// -@external(javascript, "../../gleam_javascript_ffi.mjs", "map_new") -pub fn new() -> Map(key, value) - -/// Insert a new key and value into the `Map`. -/// -/// **NOTE:** This function will mutate the `Map` rather than immutably -/// updating it. -/// -@external(javascript, "../../gleam_javascript_ffi.mjs", "map_set") -pub fn set(a: Map(key, value), b: key, c: value) -> Map(key, value) - -/// Get the value for a given key in the `Map`. -/// -@external(javascript, "../../gleam_javascript_ffi.mjs", "map_get") -pub fn get(a: Map(key, value), b: key) -> Result(value, Nil) - -/// Get the number of key-value pairs in the `Map`. -/// -@external(javascript, "../../gleam_javascript_ffi.mjs", "map_size") -pub fn size(a: Map(key, value)) -> Int