Post Reply 
Free42: Random Word Picker
09-09-2022, 07:33 PM
Post: #5
RE: Free42: Random Word Picker
(09-09-2022 02:00 PM)Werner Wrote:  I originally tried it with lists, but getting the N-th item out of a list is a nightmare, or I'm missing something.

Well, you could cobble something together using LIST→ and PICK, but it wouldn't be pretty and it would require NSTK mode. And in Plus42, you could use GETITEM, but not in Free42.

(GETITEM is an undocumented function which is used to implement matrix and list element access in code generated by PARSE, but there's nothing magical about those functions used by the code generator, you can use them in your own code as well.)
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Free42: Random Word Picker - syzygetic - 09-09-2022, 12:26 PM
RE: Free42: Random Word Picker - Werner - 09-09-2022, 02:00 PM
RE: Free42: Random Word Picker - Thomas Okken - 09-09-2022 07:33 PM
RE: Free42: Random Word Picker - rprosperi - 09-10-2022, 10:45 AM
RE: Free42: Random Word Picker - syzygetic - 09-09-2022, 04:10 PM



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