Example: Vector of integers
Profiles: basic v1
This example stores a vector (list, array) of small integer values: 1, 2, 3, 4.
Related Specification
Systems
Oscar.jl
Generate code (generate.jl) [ edit ]
using Oscar
obj = Int[1, 2, 3, 4]
save("data.mrdi", obj)
Data outputs
Profiles: OSCAR v1.0, OSCAR v1.1, OSCAR v1.2, OSCAR v1.3, OSCAR v1.4, OSCAR v1.5, OSCAR v1.6, OSCAR v1.7
Data file: data.mrdi
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
"_type": {"name": "Vector", "params": "Base.Int"},
"data": ["1", "2", "3", "4"]
}
This serialized output is equivalent for these profiles up to UUID renaming and recorded namespace version strings.