Post Reply 
delete repeated values or groups in a list
12-24-2021, 04:57 PM
Post: #2
RE: delete repeated values or groups in a list
(12-24-2021 04:53 PM)robmio Wrote:  One question: is there a command, in HP PRIME, to delete repeated values or groups in a list?

For instance: {1,1,2,3,4,4,5} --command--> {1,2,3,4,5}


or: {{1,2},{3,4},{1,2},{5,6},{3,4}} --command--> {{1,2},{3,4},{5,6}}

UNION works for your first example- it removes duplicates if given a single list as an argument. I'm not sure about your second argument, UNION should work but I don't have my Prime handy.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: delete repeated values or groups in a list - John Keith - 12-24-2021 04:57 PM



User(s) browsing this thread: