diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-09-09 19:55:07 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-09-09 19:55:07 +0100 |
commit | bc811f914387b05c34836b2be07697ae52ce6347 (patch) | |
tree | 2abb97f8a8e5b4acfb72362d6def1dd6c06ffcf5 /src | |
parent | 014cf4a208b254d2172f318147edccc70fc1e49d (diff) | |
download | gleam_stdlib-bc811f914387b05c34836b2be07697ae52ce6347.tar.gz gleam_stdlib-bc811f914387b05c34836b2be07697ae52ce6347.zip |
Remove dynamic thunk function
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/dynamic.gleam | 16 |
1 files changed, 0 insertions, 16 deletions
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. /// |