deflikes(ls)caselsin[]"no one likes this"in[a]format"%s likes this",ain[a,b]format"%s and %s like this",a,bin[a,b,c]format"%s, %s and %s like this",a,b,cin[a,b,*rest]format"%s, %s and %d others like this",a,b,rest.sizeendendplikes([])# => "no one likes this"plikes(["Peter"])# => "Peter likes this"plikes(["Jacob","Alex"])# => "Jacob and Alex like this"plikes(["Max","John","Mark"])# => "Max, John and Mark like this"plikes(["Alex","Jacob","Mark","Max"])# => "Alex, Jacob and 2 others like this"
git clone git@github.com:ruby/ruby.git
cd ruby
autoconf
./configure optflags="-O0" debugflags="-g3" --prefix="$HOME/.rbenv/versions/master"
make && make install
rbenv global master
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ruby <3
Nice!
I can't wait ruby 2.7 release!