attach static method

Word attach(
  1. Word word
)

Implementation

static Word attach(Word word) => ids[++lastId] ??= map[word.name] = word;