Chapter Recap
This chapter’s mandate was to use techniques you’ve already learned at some broader levels. However, there were still a few new concepts or approaches.
Equidistant Letter Sequences and larger-scale text searches
Extracting single characters from Strings
The
chr
methodModeling natural selection with
methinks.rb
Subclassing (
Children < Array
) and inheritanceCalculating differences between Strings
select_fittest
:inject
versussort_by
Genuine random versus pseudo-random
Meta-mutation with
methinks_meta.rb
Alphabetizing
inspect
through overriding
Our next chapter is the second of two chapters that consider more complex programs. While this chapter mainly expanded upon concepts we’ve already learned, the next one uses an exciting new type of ...
Get Ruby by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.