I have been working double duty tonight, since I have been slacking on my blogging duty. I am again slacking, I am going to skip from chapter 5 to chapter 6 for now.

Chapter 7: Higher Order Functions and List Comprehensions

link

This etude starts off freshman HS year style, with a little calculus! It is asking us to create a method that determines the derivative of an anonymous function.

The next exercise is pushing our understanding of what we can do with list comprehensions. It asks if it is possible to use pattern matching and list comprehension together? I think YES.

I am starting to notice a pattern with this chapter, and I think it is lists. Next we get to finally use some functions implemented by the framework, and not have to implement them ourselves. The function that gets the privalige of our attention first is: lists:foldl/3. Don’t exactly know why there is an l at the end, scratch that just looked it up. It seems as though you can pick which direction you want to fold the list up, which makes sense.

More list work…

Have you been waiting for an exercise that kinda sorta had a real world feel to it? Well prepare to have you real world socks, get barely dirty but still dirty!

We will now use what we have learned about list comprehension to create a deck of cards! We also get to figure out how a pre-defined function works, then comment it. Junior Software Engineer in each of us just sighed a little, I know you did don’t act like you were never assigned this task!

Well I am excited to Chapter 8, when we finally get into processes. That is next week, so stay tuned!

What are you most excited to learn about processes, next week??

Chapter 8 MEETUP