Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ndabAP committed Jan 25, 2025
1 parent e5924bf commit 5d337f8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lookup_table_vecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"github.com/ndabAP/assocentity/v15/tokenize"
)

func (table Lookup) Vecs() map[*tokenize.Token][]int {
func (lookup Lookup) Vecs() map[*tokenize.Token][]int {
vecs := make(map[*tokenize.Token][]int)
for i, analyses := range table.analyses {
lookup := table.nth(i)
for i, analyses := range lookup.analyses {
coords := lookup.nth(i)

func() {
next, stop := iter.Pull(maps.Values(lookup))
next, stop := iter.Pull(maps.Values(coords))
defer stop()
for j, token := range analyses.Tokens {
if token == tokenize.NilToken {
Expand All @@ -32,9 +32,8 @@ func (table Lookup) Vecs() map[*tokenize.Token][]int {
}()

func() {
next, stop := iter.Pull(maps.Values(lookup))
next, stop := iter.Pull(maps.Values(coords))
defer stop()

for j, token := range slices.Backward(analyses.Tokens) {
if token == tokenize.NilToken {
continue
Expand Down

0 comments on commit 5d337f8

Please sign in to comment.