3 ms·
fib = 0 fby ( 1 fby fib + next fib ); That's how this would look in a data-flow language. "fby" means "flowed by". It constructs a stream. So you can be quit
by still_grokking 5y ago
fib = 0 fby ( 1 fby fib + next fib );
That's how this would look in a data-flow language.
"fby" means "flowed by". It constructs a stream.
So you can be quite terse without loosing the clarity just by using the right abstraction.
Example taken form:
https://en.wikipedia.org/wiki/Lucid_(programming_language) https://en.wikipedia.org/wiki/Lucid_(programming_language)