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
14
Task/Mandelbrot-set/Sidef/mandelbrot-set.sidef
Normal file
14
Task/Mandelbrot-set/Sidef/mandelbrot-set.sidef
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
func mandelbrot(z) {
|
||||
var c = z;
|
||||
{ z = (z*z + c);
|
||||
z.abs > 2 && return true;
|
||||
} * 20;
|
||||
return false;
|
||||
}
|
||||
|
||||
1 ^.. (-1, 0.05) -> each { |y|
|
||||
-2 ..^ (0.5, 0.0315) -> each { |x|
|
||||
print(mandelbrot(y.i + x) ? ' ' : '#');
|
||||
}
|
||||
print "\n";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue