Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
2
Task/FizzBuzz/XPath-2.0/fizzbuzz-1.xpath
Normal file
2
Task/FizzBuzz/XPath-2.0/fizzbuzz-1.xpath
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
for $n in 1 to 100 return
|
||||
concat('fizz'[not($n mod 3)], 'buzz'[not($n mod 5)], $n[$n mod 15 = (1,2,4,7,8,11,13,14)])
|
||||
2
Task/FizzBuzz/XPath-2.0/fizzbuzz-2.xpath
Normal file
2
Task/FizzBuzz/XPath-2.0/fizzbuzz-2.xpath
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
for $n in 1 to 100 return
|
||||
($n, 'Fizz', 'Buzz', 'FizzBuzz')[number(($n mod 3) = 0) + number(($n mod 5) = 0)*2 + 1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue