NFun icon indicating copy to clipboard operation
NFun copied to clipboard

Tupple type

Open tmteam opened this issue 3 years ago • 0 comments

y:(int,text) = (42,'vasa')

f(x) = (x*2, x.toText(), x-1)

(g,t,i) = f(42)
  • Type definition: ($type1, $type2 ...)
  • No less than 2 types
  • Can be converted to 'Any'
  • Covariance (?)

tmteam avatar Jan 23 '22 12:01 tmteam