Post Reply 
expanding list to objects
06-20-2016, 04:25 PM
Post: #11
RE: expanding list to objects
(06-20-2016 04:18 PM)StephenG1CMZ Wrote:  
(06-19-2016 09:25 PM)Didier Lachieze Wrote:  mat2list(CAS("{1,2,2,3} union {1,2,2,3}"))

I thought that would be a useful procedure - but I wasn't sure of the syntax needed to make {1,2,2,3} into a list parameter within a quoted string within CAS.

Simply like that:
Code:
EXPORT PurgedOfDuplicates(LST)
BEGIN
  LOCAL s;
  s:=STRING(LST)+" union "+STRING(LST);
  mat2list(CAS(s));
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
expanding list to objects - poznavatelj - 06-16-2016, 01:58 PM
RE: expanding list to objects - DrD - 06-16-2016, 02:16 PM
RE: expanding list to objects - retoa - 06-20-2016, 07:36 AM
RE: expanding list to objects - roadrunner - 06-20-2016, 11:08 AM
RE: expanding list to objects - Stevetuc - 06-21-2016, 10:10 AM
RE: expanding list to objects - Joe Horn - 06-21-2016, 09:12 AM
RE: expanding list to objects - Wes Loewer - 06-21-2016, 09:13 AM
RE: expanding list to objects - Tonig00 - 06-19-2016, 07:05 PM
RE: expanding list to objects - Didier Lachieze - 06-20-2016 04:25 PM



User(s) browsing this thread: 3 Guest(s)