Page MenuHomeFeedback Tracker

[Feature Request] New scripting command: findLast
New, NormalPublic

Description

<string/array> findLast <query>

Would return the index of the last occurrence of the given query in given string or array. -1 if not found.
<query> could also support simple expression

//crappy examples:
"my_string_to_be_searched" findLast "_"; //returns 15
["hello", "faa", 0, "hello", "fii"] findLast "hello"; //returns 3
[[1,2,3], [1,2,3,4], [1,2,3], [1,2,3,4], [1,2,3,4,5,6,7]] findLast {count _x == 4}; // returns 3

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Engine

Event Timeline

h- created this task.Aug 17 2020, 9:00 AM
DrSova added a subscriber: DrSova.Sep 4 2020, 3:09 PM