Slide 73
Slide 73 text
map(.x, .f, ...)
books <- map(got_chars_named, "books")
map_chr(books[1:2], paste, collapse = ", ")
#> Theon Greyjoy
#> "A Game of Thrones, A Storm of Swords, A Feast for Crows"
#> Tyrion Lannister
#> "A Feast for Crows, The World of Ice and Fire"
map_chr(books[1:2], ~ paste(.x, collapse = ", "))
#> Theon Greyjoy
#> "A Game of Thrones, A Storm of Swords, A Feast for Crows"
#> Tyrion Lannister
#> "A Feast for Crows, The World of Ice and Fire"