You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
Tuples (fixed-length arrays) should be added.
Syntax
The syntax for defining a tuple would be:
Which creates a tuple with values a and b.
Tuple destructuring into variables/arguments should be added. The syntax for variables would be:
Which would set a to 0, and b to 1.
The syntax for functional arguments should be:
Calling X() with the argument (2, 3) will destructure the tuple into the variables a, b and return the sum 5.
Functions
Tuples can be indexed like arrays and will have
map
,filter
andreduce
functions. It should also have anarray
function to cast it into an array.An
enumerate
function should also be added for arrays/tuples which will return an array of tuples containing index-value pairs.The text was updated successfully, but these errors were encountered: