Skip to content

return named tuple (; integral = …, error = …) #140

@stevengj

Description

@stevengj

Rather than returning a tuple, it would be nice if quadgk and friends returned a named tuple (; integral = …, error = …).

This would make the output easier to read, you could do e.g. quadgk(...).integral instead of quadgk(...)[1], and it should be mostly backwards compatible because named tuples can also be used just like tuples.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions