Skip to content

Commit

Permalink
Document a few more differences
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 20, 2024
1 parent 5fd340c commit c1c42ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/pmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#' you can only refer to arguments by position.
#' @inheritParams map
#' @returns
#' The output length is determined by the length of the input.
#' The output names are determined by the names of the first element.
#' The output length is determined by the maximum length of all elements of `.l`.
#' The output names are determined by the names of the first element of `.l`.
#' The output type is determined by the suffix:
#'
#' * No suffix: a list; `.f()` can return anything.
Expand All @@ -35,9 +35,9 @@
#' vector of length 1.
#'
#' * `_vec()` return an atomic or S3 vector, the same type that `.f` returns.
#' `.f` can return pretty much any type of vector, as long as its length 1.
#' `.f` can return pretty much any type of vector, as long as it is length 1.
#'
#' * `walk()` returns the input `.x` (invisibly). This makes it easy to
#' * `pwalk()` returns the input `.l` (invisibly). This makes it easy to
#' use in a pipe. The return value of `.f()` is ignored.
#'
#' Any errors thrown by `.f` will be wrapped in an error with class
Expand Down
8 changes: 4 additions & 4 deletions man/pmap.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1c42ad

Please sign in to comment.