Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 19th, 2018
81
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
generic_fib = -> a, b, &c { Enumerator.new{ |y| loop { y << a; a, b = b, c[a,b] }}}
fib = generic_fib[1,1, &:+]
negative_fib = generic_fib[1,-1, &:-]
p fib.take(10)
p negative_fib.take(10)
Add Comment
Please,
Sign In
to add comment
Public Pastes
C Bitwise Operators
C | 23 min ago | 0.65 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 58 min ago | 0.39 KB
Dl Important programs
Lua | 58 min ago | 0.07 KB
snowybot
JavaScript | 1 hour ago | 1.52 KB
CC network remote
Lua | 1 hour ago | 0.16 KB
diffusion
Python | 1 hour ago | 8.35 KB
openvpn ovpn server mikrotik
Bash | 1 hour ago | 0.96 KB
Game Logic
Lua | 1 hour ago | 2.36 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!