Skip to content

Add struct for calculation results #3

@ohno

Description

@ohno
struct Result
    a
    b
    c
end

Base.string(t::Result) = """Result
  a: $(t.a)
  b: $(t.a)
"""

Base.show(io::IO, t::Result) = print(io, Base.string(t))

r = Result(1.0, 2.0, 3.0)
# Result
#   a: 1.0
#   b: 1.0

Metadata

Metadata

Assignees

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