Qurak

Confirm

ใช้งานได้

Confirms that an expression is not a failure otherwise throwing to the enclosing Enclose

Confirm[expr]
Confirm[expr, info]
Confirm[expr, info, tag]
Enclose[f[x, Confirm[y], z]] → f[x, y, z]Enclose[Confirm[Missing[]]] → Failure[ConfirmationFailed, <|MessageTemplate -> `` encountered., MessageParameters -> {Missing[]}, ConfirmationType -> Confirm, Expression -> Missing[], Information -> Null|>]Enclose[Confirm[2, Echo["info was evaluated"]]] → 2

หัวข้อ

ที่เกี่ยวข้อง

ฟังก์ชันทั้งหมด 6300 รายการ · ใช้สิ่งนี้จากไคลเอนต์ MCP