@smartkittymomo I mean, if that's what you gotta do what else would you do?
Conversation
Notices
-
halcy:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 05:51:47 JST halcy:icosahedron: -
halcy:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 05:54:32 JST halcy:icosahedron: @smartkittymomo it's the cartesian product and apparently 3.6 forward has a function to do it (itertools.product), I guess
but the time complexity is the same anyways and readability wise both variants are... fine I guess?
-
halcy:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 05:55:22 JST halcy:icosahedron: @smartkittymomo (actually 2.6 and up, apparently)
-
halcy:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 05:58:05 JST halcy:icosahedron: @smartkittymomo time to get COOL and FUNCTIONAL if you feel like it
-
halcy:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:00:51 JST halcy:icosahedron: @smartkittymomo yeah I mean _no matter what_ you have to touch every element in the list
the cost of touching the elements and doing whatever to them, cpu and memory fetching, is going to dominate anyways
-