The seqhash.Hash function currently accepts a plain string for the sequenceType parameter. This allows…
The seqhash.Hash function currently accepts a plain string for the sequenceType parameter. This allows…: a task in LegoFlow-SWE (Harbor dataset). To prevent misuse and enable compile‑time validation, the package should expose a set of dedicated, type‑safe constants – seqhash.DNA , seqhash.RNA …
The task
To prevent misuse and enable compile‑time validation, the package should expose a set of dedicated, type‑safe constants – `seqhash.DNA`, `seqhash.RNA`, and `seqhash.PROTEIN` – that represent the only valid sequence types. These constants should be of a new, non‑string type so that the compiler rejects any raw string…
Part of Lego-X/LegoFlow-SWE.