@anonymous/

SiennaZestyTrout

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
4
5
6
7
f=->g{b='bleen';a=*-10..-7,?-+b,*-6..6,b,*7..10;x,y=g.map{|v|a.index v}
y<x ?a[y..x].reverse: a[x..y]}

p f.call [1,10]
p f.call [-9,-3]
p f.call [7,'-bleen']
p f.call ['bleen','bleen']
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]