Replies: 0 comments 5 replies
-
You could do a |
Beta Was this translation helpful? Give feedback.
-
Oh! Good idea, I'll give that a shot. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Actually, I don't think that solves my problem. It needs to be a |
Beta Was this translation helpful? Give feedback.
-
So |
Beta Was this translation helpful? Give feedback.
-
I have a use-case for performing a sort by key, where I don't actually care about the key but I'd like to use it to sort the values.
The problem here is that the keys are not stored anywhere, and I would like them to be "generated" using a transform iterator.
So, if I effectively passed the
variance
lambda intosort_by_key
with atransform_iterator
, I would get theinput
sorted based on the return values of the lambda.But it seems like this use is not supported due to:
Is my understanding correct? If so, any suggestions on another way to address this problem without actually first generating the keys and storing them separately?
Beta Was this translation helpful? Give feedback.
All reactions