Extracting unique values from field

How do I extract unique elements from a text field containing various items separated by commas? I.e. I want a list of all the different names in a field where one record contains Bob, Jim, Bill, and another contains Ralph, Jim, Ed, etc.

Maybe this:

let lvuniqueelements=arraydeduplicate(arraybuild(",","",{FieldName}),",")

Got it, thanks!