Tekkaman

导航

 

construction of tuples containing 0 or 1 items

  the syntax has some extra quirks to accommodate these. Empty tuples are constructed by an empty pair of parentheses; a tuple with one item is constructed by following a value with a comma (it is not sufficient to enclose a single value in parentheses). Ugly, but effective. For example:

  

 

posted on 2016-07-27 19:00  Tekkaman  阅读(137)  评论(0编辑  收藏  举报