aboutsummaryrefslogtreecommitdiff
path: root/gen/src/gleam@dynamic.erl
diff options
context:
space:
mode:
authorRJ Dellecese <rjdellecese@gmail.com>2019-12-18 22:04:16 -0500
committerLouis Pilfold <louis@lpil.uk>2019-12-19 10:35:55 +0000
commitdd7dd9b1df1c77a62c49ca6e2620f6757b5b0734 (patch)
treee519bb3fd5573c0bd067d1f7c62c407fee8a37bd /gen/src/gleam@dynamic.erl
parent2be45a710cb7332cf3c9a16d251c97561f88109c (diff)
downloadgleam_stdlib-dd7dd9b1df1c77a62c49ca6e2620f6757b5b0734.tar.gz
gleam_stdlib-dd7dd9b1df1c77a62c49ca6e2620f6757b5b0734.zip
Add dynamic.element for decoding tuples
Diffstat (limited to 'gen/src/gleam@dynamic.erl')
-rw-r--r--gen/src/gleam@dynamic.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/gen/src/gleam@dynamic.erl b/gen/src/gleam@dynamic.erl
index e20db87..09a442b 100644
--- a/gen/src/gleam@dynamic.erl
+++ b/gen/src/gleam@dynamic.erl
@@ -1,7 +1,7 @@
-module(gleam@dynamic).
-compile(no_auto_import).
--export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, field/2]).
+-export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, field/2, element/2]).
from(A) ->
gleam_stdlib:identity(A).
@@ -38,3 +38,6 @@ list(Dynamic, DecoderType) ->
field(A, B) ->
gleam_stdlib:decode_field(A, B).
+
+element(A, B) ->
+ gleam_stdlib:decode_element(A, B).