type.unary_operand
Operator cannot be used with this value.
Area 3, Logic; not declinable; the next step is usually the agent's.
type Phrase = Text {}type Flag = Bool {}function negate(phrase: Phrase) -> Flag { return Flag(not phrase)}
error not needs a Bool, and phrase is a Phrase
--> main.jadpo:6:21
|6 | return Flag(not phrase) | ^^^^^^ this is `Phrase`
- reason
notworks onBoolvalues and types built onBool; Jadpo has no truthiness.- next
- Compare
phraseto get aBool(agent) - rule
- type.
unary_ operand - help
- https://jadpo.
dev/docs/errors/type. unary_ operand
Markdown for agents: /docs/errors/type.unary_operand.md.Built from Jadpo main at aee2e8f.