Feeling a bit tired today. This will make 3 days in a row when I go to sleep after midnight.
What I learned today:
- Regex groupings: /([aeiou]*)([aeiou].*)/ These regex groups (stuff in between parentheses) can be called in a string, “21ay” produces pig-latin.
- Used the Enumerable group_by method to segment anagrams in an array.
- Also learned about recursion with factorials and Fibonacci sequences. Recursion is interesting as you can iterate through an array without ever actually creating or storing it! WTF! Best way to see it in action is with a recursive tree. A good analogy was the kick in the movie inception. The kick would take you to the higher level in the dream. The dream in recursion is the stack.
Stay connected