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
Similar to how keys() and values() works on maps, add a function to convert types of stack or set into arrays. E.g., if we name the new function values():
s: stack of int;
push(s, 3);
push(s, 4);
a: array of int = values(s);# a[0] = 3, a[1] = 4
And similarly if 's' was defined as 'set of int'.
The text was updated successfully, but these errors were encountered:
psybers
changed the title
Feature request: add functions to convert stacks and sets into arrays
add functions to convert stacks and sets into arrays
Dec 31, 2015
Similar to how keys() and values() works on maps, add a function to convert types of stack or set into arrays. E.g., if we name the new function values():
And similarly if 's' was defined as 'set of int'.
The text was updated successfully, but these errors were encountered: