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
17
Task/FizzBuzz/ECL/fizzbuzz.ecl
Normal file
17
Task/FizzBuzz/ECL/fizzbuzz.ecl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
DataRec := RECORD
|
||||
STRING s;
|
||||
END;
|
||||
|
||||
DataRec MakeDataRec(UNSIGNED c) := TRANSFORM
|
||||
SELF.s := MAP
|
||||
(
|
||||
c % 15 = 0 => 'FizzBuzz',
|
||||
c % 3 = 0 => 'Fizz',
|
||||
c % 5 = 0 => 'Buzz',
|
||||
(STRING)c
|
||||
);
|
||||
END;
|
||||
|
||||
d := DATASET(100,MakeDataRec(COUNTER));
|
||||
|
||||
OUTPUT(d);
|
||||
Loading…
Add table
Add a link
Reference in a new issue