-
I have the following Function
which compiles but I am not sure of how to proceed from getting the datum to making an actual comparison of the reference input datum with a custom class (the format i expect the datum to be submitted in) -If I cast the datum to a custom type the compiler throws an error : winnersDatum = winnerList(unionDatum.datum) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Use a Downcast by annotating the assigned variable with the desired type like this winnerdatum: winnerList = unionDatum.datum Here is a another code example with explanation: https://github.com/ImperatorLang/eopsin/blob/master/examples/datum_cast.py |
Beta Was this translation helpful? Give feedback.
Use a Downcast by annotating the assigned variable with the desired type like this
Here is a another code example with explanation: https://github.com/ImperatorLang/eopsin/blob/master/examples/datum_cast.py