Bug? Tricky syntax? Finding items in a list
|
11-03-2017, 03:28 PM
(This post was last modified: 11-03-2017 09:16 PM by StephenG1CMZ.)
Post: #1
|
|||
|
|||
Bug? Tricky syntax? Finding items in a list
This program is meant to find the positions of items in a list.
A simple FOR loop, yes? No, it has problems if the list contains lists. It gives a Bad Agument Error...unless you insert a diagnostic print, in which case the inner list is printed, and nothing after that. Code:
Example: Find({1,{},33,4},33) should yield {3} But (1,{} ,3,4},3 fails. Stephen Lewkowicz (G1CMZ) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Bug? Tricky syntax? Finding items in a list - StephenG1CMZ - 11-03-2017 03:28 PM
RE: Bug? Tricky syntax? Finding items in a list - Carlos295pz - 11-03-2017, 03:53 PM
RE: Bug? Tricky syntax? Finding items in a list - Carlos295pz - 11-03-2017, 04:19 PM
RE: Bug? Tricky syntax? Finding items in a list - StephenG1CMZ - 11-04-2017, 09:36 AM
RE: Bug? Tricky syntax? Finding items in a list - Didier Lachieze - 11-04-2017, 09:42 AM
RE: Bug? Tricky syntax? Finding items in a list - webmasterpdx - 11-04-2017, 07:01 AM
|
User(s) browsing this thread: 1 Guest(s)