Skip to content
webtype.orgwebtype.org#271 drop-character · par 3

    ↑↓ move · ⏎ open · esc close

    No. 271 · September 23, 2026 · Moderate

    Drop a character

    Implement `DropChar<S, C>` so every occurrence of the character union `C` disappears from `S`.

    01

    Puzzle

    Par 3

    Puzzle

    drop-character.ts
    Stroke 1 of 3Not run yet

    Replace ??? — your solution is checked against the cases below. Tab indents; press Escape then Tab to move focus out.

    Checks

    3
    • DropChar<'a-b-c', '-'>
      'abc'
    • DropChar<'banana', 'a'>
      'bnn'
    • DropChar<'a.b-c', '.' | '-'>
      'abc'

    How a check is judged Exact type equality, not assignability — an intersection is not the same as the flattened object.

    How everyone did

    Fewer than 5 people have solved this one so far. The distribution appears once there is enough of a sample to mean anything.

    Short game

    Fewest characters

    No public scores yet.

    Archive
    02

    Annotated solution

    This write-up publishes 24 hours after the puzzle closes.

    Uses