This function was deprecated in purrr 1.0.0 and is now defunct because it's not related to the core purpose of purrr.
This is a companion to append() to help merging two
lists or atomic vectors. prepend() is a clearer semantic
signal than c() that a vector is to be merged at the beginning of
another, especially in a pipe chain.
Examples
x <- as.list(1:3)
# Instead of prepend(), use append():
x |> append("a", after = 0)
#> [[1]]
#> [1] "a"
#>
#> [[2]]
#> [1] 1
#>
#> [[3]]
#> [1] 2
#>
#> [[4]]
#> [1] 3
#>
x |> append(list("a", "b"), after = 2)
#> [[1]]
#> [1] 1
#>
#> [[2]]
#> [1] 2
#>
#> [[3]]
#> [1] "a"
#>
#> [[4]]
#> [1] "b"
#>
#> [[5]]
#> [1] 3
#>
