Last active
January 23, 2021 14:43
-
-
Save tirthankarkundu17/e533e1332fe777575450a05fb9116992 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 | |
fun factorial(n: Number) = | |
(if(n == 0 or n == 1) | |
1 | |
else | |
n * factorial(n-1)) | |
output application/json | |
--- | |
factorial(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment