guard-clause-then-expression-pattern

Status: IN

Easy-difficulty solutions follow a guard-clause-then-expression pattern: validate the input constraint up front, then return the entire transformation as a single expression.

Source: entries/2026/06/06/convert-1d-array-into-2d-array-solution.md

JSON