Hi, I have two Struts where one struct requires and object of the other as one of it’s fields. I am wondering how to initialise with an undef value of it. Here is an example
mutable struct Casualty
id::Int
pos::Tuple{Int,Int,Float64}
trauma::Int
awaiting_rescue::Bool
end
mutable struct Rescuer
id::Int
pos::Tupe{Int,Int,Float64}
casualty_in_rescue::Casualty
casualties_rescued::Vector{Casualty}
end
rescuer_x = Rescuer(1, (75,75,160.1), undef, Casualty[])
I am wondering what to add instead of undef (which is ofcourse incorrect), where it will represent something similar to NaN value (which cannot be added cause its Float type)