Because a WarpScript exection can return a stack of any elements (GTS, but also, maps, lists, primitives)
It could be helpful to support some generic here.
Furthermore, in a stack each element can be of different type
The purpose of get() is to retrieve the Nth stack element and use some kind of circe decoder to parse it into T
This way, I can, for exempe, get[String](0) to get a string I had set on top of the stack
Because a WarpScript exection can return a stack of any elements (GTS, but also, maps, lists, primitives) It could be helpful to support some generic here. Furthermore, in a stack each element can be of different type
This is what I have in mind
The purpose of
get()
is to retrieve the Nth stack element and use some kind of circe decoder to parse it into T This way, I can, for exempe,get[String](0)
to get a string I had set on top of the stack