List Commands Library for 50g
|
06-25-2017, 05:33 PM
(This post was last modified: 06-25-2017 05:36 PM by pier4r.)
Post: #7
|
|||
|
|||
RE: List Commands Library for 50g
Thanks for the answers (and for the grammar police, I appreciate).
#3: yes intersect should work as I expect, I need to test it (surely the challenge #34 will help a lot) #4. Yes why not. For me it is always: "start small then generalize", if you can generalize from the start, even better. How you described the command works for lists of lists, so it is consistent. Maybe you can make even an extended LPOS then. Example: { { 1 2 3 } { 3 4 5 } 1 2 3 } 3 LPOSR (recursive) Output: { 1 2 5 } { 1 3 } { 2 1 } { 5 } Explanation: all the elements where the value was found. If an elements is a sublist, it is recursively checked. The result is: { element_positions_with_value } { position_of_element_with_value_that_is_a_list inner_positions_with_value} The problem is, how to visualize 3 or more nested lists? (I am not sure how many nesting levels are allowed) But it may be not so easy to explain to the user. Also I did not check the new release, but I hope you mention in the about page (that is pretty cool) that your library is intended as complement of the libraries L1, L2, L3... (in this case Goferlist and 50g commands, but one does not know if other useful libraries will be found in the future). Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)