Ecstatic Coder
2018-08-17 13:19:28 UTC
https://github.com/senselogic/CIBYL
// Recursive Fibonacci function
allow those who find a curly-bracket language syntax more pleasant to their
eyes, to not disregard Ruby or Crystal just because of a silly syntactic
preference...
// Recursive Fibonacci function
def fibonacci(
n : Int32
)
{
if ( n <= 1 )
{
return 1;
}
else
{
return fibonacci( n - 1 ) + fibonacci( n - 2 );
}
}
puts fibonacci( 5 );
Clearly NOT intended for the typical Ruby/Crystal lover, but rather ton : Int32
)
{
if ( n <= 1 )
{
return 1;
}
else
{
return fibonacci( n - 1 ) + fibonacci( n - 2 );
}
}
puts fibonacci( 5 );
allow those who find a curly-bracket language syntax more pleasant to their
eyes, to not disregard Ruby or Crystal just because of a silly syntactic
preference...