Remix.run Logo
tymscar 11 hours ago

You most likely asked an AI for this. They always think there is an `if` keyword in case statements in Gleam. There isn't one, sadly.

EDIT: I am wrong. Apparently there are, but it's a bit of a strange thing where they can only be used as clauses in `if` statements, and without doing any calculations.

WJW 11 hours ago | parent [-]

There is though?

https://tour.gleam.run/flow-control/guards/