| 781 | } |
| 782 | |
| 783 | int lastIndexOf(ELEM_ inValue, Dynamic fromIndex = null()) |
| 784 | { |
| 785 | int len = length; |
| 786 | int i = fromIndex==null() ? len-1 : fromIndex->__ToInt(); |
| 787 | ELEM_ *e = (ELEM_ *)mBase; |
| 788 | if (i >= len) |
| 789 | i = len - 1; |
| 790 | else if (i < 0) |
| 791 | i += len; |
| 792 | while(i>=0) |
| 793 | { |
| 794 | if (hx::arrayElemEq(e[i],inValue)) |
| 795 | return i; |
| 796 | i--; |
| 797 | } |
| 798 | return -1; |
| 799 | } |
| 800 | |
| 801 | NullType shift() |
| 802 | { |
no test coverage detected