opentofu/lang/funcs
James Bardin 93ef015336 more precise type handling in flatten
FlattenFunc can return lists and tuples when individual elements are
unknown. Only return an unknown tuple if the number of elements cannot
be determined because it contains an unknown series.

Make sure flatten can handle non-series elements, which were previously
lost due to passing a slice value as the argument.
2019-05-01 16:57:31 -04:00
..
testdata lang/funcs: templatefile function 2018-12-21 08:06:14 -08:00
cidr_test.go port cidr functions 2018-10-16 18:49:20 -07:00
cidr.go port compact function 2018-10-16 18:49:20 -07:00
collection_test.go more precise type handling in flatten 2019-05-01 16:57:31 -04:00
collection.go more precise type handling in flatten 2019-05-01 16:57:31 -04:00
conversion_test.go lang/funcs: Type conversion functions 2019-01-17 10:01:47 -08:00
conversion.go lang/funcs: Type conversion functions 2019-01-17 10:01:47 -08:00
crypto_test.go lang/funcs: Fix filebase64sha256 function hashing algorithm 2019-03-12 12:59:36 -04:00
crypto.go lang/funcs: Fix filebase64sha256 function hashing algorithm 2019-03-12 12:59:36 -04:00
datetime_test.go cleanup comments for nicer godocs 2018-10-16 18:49:20 -07:00
datetime.go cleanup comments for nicer godocs 2018-10-16 18:49:20 -07:00
encoding_test.go base64decodeFunc now checks for valid UTF-8 2018-10-16 18:49:20 -07:00
encoding.go base64decode: check that the decoded (not encoded) string is valid UTF-8 2018-10-16 18:49:20 -07:00
filesystem_test.go lang/funcs: Fix out-of-bounds ArgError in templatefile function 2019-03-19 16:23:51 -07:00
filesystem.go lang/funcs: Fix out-of-bounds ArgError in templatefile function 2019-03-19 16:23:51 -07:00
number_test.go porting functions 2018-10-16 18:49:20 -07:00
number.go porting functions 2018-10-16 18:49:20 -07:00
string_test.go porting many functions 2018-10-16 18:49:20 -07:00
string.go lang/funcs: Fix panic in "join" when an element is null 2019-02-07 14:35:13 -08:00