From bc811f914387b05c34836b2be07697ae52ce6347 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 9 Sep 2021 19:55:07 +0100 Subject: Remove dynamic thunk function --- src/gleam/dynamic.gleam | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src') diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam index afea004..d4afca0 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -174,22 +174,6 @@ if erlang { pub external fn bool(from: Dynamic) -> Result(Bool, DecodeError) = "gleam_stdlib" "decode_bool" - /// Checks to see whether a Dynamic value is a function that takes no arguments, - /// and return the function if it is. - /// - /// ## Examples - /// - /// > import gleam/result - /// > let f = fn() { 1 } - /// > thunk(from(f)) |> result.is_ok - /// True - /// - /// > thunk(from(123)) - /// Error(DecodeError(expected: "zero arity function", found: "Int")) - /// - pub external fn thunk(from: Dynamic) -> Result(fn() -> Dynamic, DecodeError) = - "gleam_stdlib" "decode_thunk" - /// Checks to see whether a Dynamic value is a list, and return the list if it /// is. /// -- cgit v1.2.3