Skip to content

Add a method for length(x::Base.SkipMissing) #42672

@bkamins

Description

@bkamins

This currently fails:

julia> x = [1, 2, 3]
3-element Vector{Int64}:
 1
 2
 3

julia> (length∘skipmissing)(x)
ERROR: MethodError: no method matching length(::Base.SkipMissing{Vector{Int64}})

I propose to add an appropriate method even if this is an O(n) operation since it is quite commonly needed.

CC @nalimilan

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing dataBase.missing and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions