Dear Alireza,
you can use type recognition functions in filter conditions.
For example, if we assume that writers supply a singleton x as input and there is a join node in a Reo circuit, the data type that Reo circuit deals with (Data) is either x or a pair of two items of type Data:
Data = struct x?isSingleton | Tuple(t1 : Data, t2 : Data)?isTuple;
So, a filter receives a data item d of type Data and you can use conditions like isSingleton(d) or isTuple)(d) to establish its subtype.
Regards,
Natallia
--
You received this message because you are subscribed to the Google Groups "reo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
reo-dev+u...@googlegroups.com.
To post to this group, send email to
reo...@googlegroups.com.
Visit this group at
http://groups.google.com/group/reo-dev?hl=en.
For more options, visit
https://groups.google.com/groups/opt_out.