List Commands Library for 50g
|
08-25-2017, 12:36 PM
Post: #88
|
|||
|
|||
RE: List Commands Library for 50g
(08-24-2017 08:23 PM)DavidM Wrote:(08-13-2017 03:16 PM)John Keith Wrote: The only other name that comes to mind is LPOS. I would prefer the name MPOS (as in Multiple POS) because it seems more descriptive of the difference between POS and LPOS. Another (self-interested) reason for the name MPOS is that I would really like to have that command work for strings as well as lists. The problem with that method is that lists require a lot more memory and processing time than strings. I routinely work with strings of 10000 - 20000 characters. Commands such as POS, SUB, and SREPL process such strings in a fraction of a second. A list of 20000 characters requires 120KB of memory which is impractical on the HP 50. What I was wishing for is an analog of SREPL which, instead of modifying the string, would return a list of indexes where the pattern was found. Example: "the cat in the hat" "he" -> { 2 11 } I realize that your library is primarily a list library rather than a string library but I can see the need for an expanded suite of string functions as well. John |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)