(quotedIndices: HashSet.HashSet<string>)
| 626 | } |
| 627 | |
| 628 | const indicesFrom = (quotedIndices: HashSet.HashSet<string>): Effect.Effect<Array<number>> => |
| 629 | pipe( |
| 630 | core.forEachSequential(quotedIndices, parseQuotedIndex), |
| 631 | core.mapBoth({ |
| 632 | onFailure: () => Arr.empty<number>(), |
| 633 | onSuccess: Arr.sort(number.Order) |
| 634 | }), |
| 635 | core.either, |
| 636 | core.map(Either.merge) |
| 637 | ) |
| 638 | |
| 639 | const STR_INDEX_REGEX = /(^.+)(\[(\d+)\])$/ |
| 640 | const QUOTED_INDEX_REGEX = /^(\[(\d+)\])$/ |