152
rated 0 times
[
155]
[
3]
/ answers: 1 / hits: 20932
/ 6 Years ago, fri, may 11, 2018, 12:00:00
I am trying to re-write some Python code to Javascript.
I can't figure out how to rewrite this part :
zone_indices = [[idx for idx, val in enumerate(classified) if zone + 1 == val] for zone in range(maxz)]
idx for idx, val : what does it mean to put idx at the beginning ?
More From » python