On Thursday, 23 July 2015 22:19:34 UTC+2, anj patnaik wrote:
> Is there a way in tcl 8.4 to determine if the value is a dict itself?
>
> Thanks
I would say everything is/canbe a dict if it is a multiple of 2 elements:
{x 1} # two list elements
{x {1 2 3}} # still two list elements
{x {1 2 3} y 1} # four list elements
{x {1 2 3 4} y 1} # the second element {1 2 3 4} can be seen as dictionary as well
So there is only a way to tell if dict can read the list, but not if it makes sense.