Reference · Number-puzzle engines
notesOffunction
Every value of a pencil-mark mask, smallest first.
Import it
import { notesOf } from "@johnmorrisdotca/kazu";
Definition
function notesOf(mask: number): number[]
Parameters
| Name | Type | Description |
|---|---|---|
mask | number | The pencil-note bit mask: bit value denotes that note. |
Returns
number[]
Every value of a pencil-mark mask, smallest first.
Examples
import { notesOf } from "@johnmorrisdotca/kazu";
console.log(notesOf((1<<1)|(1<<3)));[ 1, 3 ]What it prints (run when this page was built)