Post Reply 
logging a function's argument
09-26-2022, 03:12 PM
Post: #4
RE: logging a function's argument
I have previously included an assignment within a return statement.
Something like
return lst:={1,2,3}
Which both assigned the list to lst and returned the list.

Which makes me wonder whether something like
Fun(lst:={1,2,3})
Might help if you can call fun with a list.

Or perhaps
Fun(lst(0):=1,lst(0):=2,lst(0):=3)
Instead of fun(1,2,3)?

(the lst(0) syntax keeps appending to lst)

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
logging a function's argument - Wes Loewer - 09-25-2022, 07:40 PM
RE: logging a function's argument - StephenG1CMZ - 09-26-2022 03:12 PM



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