pufuwozu/roy — Issue #98: Arrray/tuple as function argument types
Author: tokland
Created: 2012-01-23 18:43:38+00:00
State: open

Are these constructions planned to be supported (or did I just used the wrong syntax?):

let duplicate_list (x:Number) : [Number] = [x, x]
console.log (duplicate_list 2)

let duplicate_tuple (x:Number) : (Number, Number) = (x, x)
console.log (duplicate_tuple 2)