Skip to content

Commit

Permalink
Merge pull request #246 from jessewheeler/main
Browse files Browse the repository at this point in the history
Implement optimized isPrime function in DataWeave
  • Loading branch information
mawerty committed Jan 24, 2024
2 parents a5ea298 + d11418f commit ae58073
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- D
- Dafny
- Dart
- DataWeave
- DXL
- Dutch
- DreamBerd---e-acc
Expand Down
5 changes: 5 additions & 0 deletions implementations/main.dwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
%dw 2.0
output application/json
var isPrime = (num) -> false
---
isPrime(payload)
1 change: 1 addition & 0 deletions optimized_implementations/Main.dwl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
%dw 2.0 output application/json var isPrime = (num) -> false --- isPrime(payload)

0 comments on commit ae58073

Please sign in to comment.