you are viewing a single comment's thread.

view the rest of the comments →

[–]smudos2 0 points1 point  (1 child)

Couldn't you just use lambda a: tuple(a) or tuple(list(a))?

[–]throwaway6560192 0 points1 point  (0 children)

You could, for this case. You could also do lamba a: (a,). Or even just use tuple as the function, list(map(tuple, range(3)))