ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1K
active users

Andy Croll

Enjoyable little coding challenge from @cassidoo this week.
Solved in Ruby (using Rails's Active Support for time munging)
The problem: buttondown.com/cassidoo/archiv

@andycroll `each_cons` yes please 👏🏻 (`sort` is unnecessary)

@benpickles @andycroll Only if you presume that the times arrive in order (I didn’t)

@andycroll you're right! i didn't fully read the question, schoolboy error 😔