wdl icon indicating copy to clipboard operation
wdl copied to clipboard

Get length of Map

Open SHuang-Broad opened this issue 2 years ago • 2 comments

I believe this is an overlooked feature. Currently length only accepts Array.

Draft implementation: https://github.com/openwdl/wdl/tree/534-generalize-length

SHuang-Broad avatar Feb 28 '23 03:02 SHuang-Broad

You're right...we should genericize length.

jdidion avatar Feb 28 '23 03:02 jdidion

Cool! Looking forward to this being implemented.

Just for completeness, in WDL 1.0 I'm able to have a "hack" by coercing the Map to Array[Pair[..., ...]].

SHuang-Broad avatar Feb 28 '23 03:02 SHuang-Broad