Skip to content

every() depends on vector order when NA is present #751

@alberto-dellera

Description

@alberto-dellera
library(purrr)

every( c(FALSE, NA), identity )
#> [1] FALSE
every( c(NA, FALSE), identity )
#> [1] NA

IMHO it should return the same and be consistent with &&:

FALSE && NA
#> [1] FALSE
NA && FALSE
#> [1] FALSE

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviormap 🗺️

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions