Skip to content

add map and filter for inline strings #5

@bkamins

Description

@bkamins

The problem is that current generic implementations for AbstractString fall back to String, so e.g. we have:

julia> x = InlineString("abc")
"abc"

julia> typeof(x)
InlineString3

julia> uppercase(x)
"ABC"

julia> typeof(uppercase(x))
String

julia> filter(==('a'), x)
"a"

julia> typeof(filter(==('a'), x))
String

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions