can i do this in wrangle?

   2131   3   0
User Avatar
Member
303 posts
Joined: May 2007
Offline
hi

I can get a setList in python easily:
alist =
setList = list(set(alist))


can I do this in wrangle?
thank you very much!
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Member
303 posts
Joined: May 2007
Offline
hi pusat
thank you for your reply, I'm sorry that it's not clearly about my question.
alist =
setList = list(set(alist))
print alist

print setList


after the “set()” the same value in the list are removed. the question is can I do this “set()” like option in wrangle? I wander if I do this in wrangle, it can be much faster!
thank you very much!
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Member
4616 posts
Joined: Feb. 2012
Offline
There is no set data type in VEX but I think I submitted an RFE for this a few years ago. While not the same, in Max, there is a BitArray data type which is very handy for variety of problems.

There is also no remove duplicates method AFAIK.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
  • Quick Links