Putting tuples or arrays in a Cell

27 views
Skip to first unread message

david.h...@vidhance.com

unread,
Nov 19, 2015, 4:25:32 AM11/19/15
to ooc-lang
You can put things in Cells, but can you put (ooc) arrays in Cells (i.e. e.g. Cell<Array> new(foo))? Is there a way of doing it without "forgetting" the array type?

I've tried making a Cell that contains a tuple (Array, Class) but then I don't know how to match "T" for both elements in the tuple when I try to extract the two things from the Cell. Is is even supposed to be possible to do something like

match (Cell T) {
case (Array, Float) ...

?

Reply all
Reply to author
Forward
0 new messages