(quotedIndices: HashSet.HashSet<string>)
| 647 | } |
| 648 | |
| 649 | const indicesFrom = (quotedIndices: HashSet.HashSet<string>): Effect.Effect<Array<number>> => |
| 650 | pipe( |
| 651 | core.forEachSequential(quotedIndices, parseQuotedIndex), |
| 652 | core.mapBoth({ |
| 653 | onFailure: () => Arr.empty<number>(), |
| 654 | onSuccess: Arr.sort(number.Order) |
| 655 | }), |
| 656 | core.either, |
| 657 | core.map(Either.merge) |
| 658 | ) |
| 659 | |
| 660 | const STR_INDEX_REGEX = /(^.+)(\[(\d+)\])$/ |
| 661 | const QUOTED_INDEX_REGEX = /^(\[(\d+)\])$/ |