Created
June 17, 2021 23:09
-
-
Save mikeacjones/d08b02cb7c583402069f3b9d5f807b58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%dw 2.0 | |
output application/json | |
fun myFunc(a: Array<String> | String) = a match { | |
case is Array<String> -> $ joinBy ',' | |
else -> a | |
} | |
--- | |
myFunc(["Test", "Test2"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment