Use `purrr` to feed four cats
Replacing a for loop with purrr::map_*
Use purrr to feed four cats In this example we will show you how to go from a ‘for loop’ to purrr. Use this as a cheatsheet when you want to replace your for loops.
Imagine having 4 cats. (like this one:)
Four real cats who need food, care and love to live a happy life. They are starting to meow, so it’s time to feed them. Our real life algorithm would be:
[Read More]