Post Reply 
Replica a number
02-03-2022, 02:10 PM
Post: #7
RE: Replica a number
(02-03-2022 01:52 PM)Arno K Wrote:  Good day,
there is no command to perform an operation like this, but you can make one:
MAKELIST(when((L1(X)) = 1,2,L1(X)),X,1,SIZE(L1),1), here the list you want to change is stored in L1, with
L1:=MAKELIST(when((L1(X)) = 1,2,L1(X)),X,1,SIZE(L1),1)
you replace the actually stored list.
Arno

Your solution is also faster than my "for" loop. Thanks so much
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Replica a number - robmio - 02-03-2022, 10:16 AM
RE: Replica a number - robmio - 02-03-2022, 10:20 AM
RE: Replica a number - robmio - 02-03-2022, 02:04 PM
RE: Replica a number - Didier Lachieze - 02-03-2022, 01:43 PM
RE: Replica a number - robmio - 02-03-2022, 02:07 PM
RE: Replica a number - Arno K - 02-03-2022, 01:52 PM
RE: Replica a number - robmio - 02-03-2022 02:10 PM
RE: Replica a number - Tyann - 02-08-2022, 11:34 AM
RE: Replica a number - robmio - 02-08-2022, 12:50 PM



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