Skip to content

Commit

Permalink
Add link to advanced R chapter for more functionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Oct 26, 2023
1 parent 46a4b53 commit 9739b3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions posts/for-vs-apply/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,11 @@ This post focused on R, but the same principles generally apply to other
functional languages. In Python for example, you would use [list
comprehensions](https://www.w3schools.com/python/python_lists_comprehension.asp)
or the [`map()` function](https://www.w3schools.com/python/ref_func_map.asp).

:::

::: {.callout-tip title="Further reading"}

If you liked the code patterns recommended in this post and want to use functional programming in more situations, including recursion, I recommend you check out the ["Functionals" chapter of the *Advanced R* book by Hadley Wickham](https://adv-r.hadley.nz/functionals.html#functionals)

:::

0 comments on commit 9739b3c

Please sign in to comment.