Episode #076: Tail Part 5: Idiom

So far, our reimplementation of tail(1) bears a striking resemblance to the style of code we might find in the C implementation of the same utility. In this episode we'll make the code a little more Rubyish by extracting loops into block methods.

This page is just for members. Sign in or subscribe to gain access!