ItemExpression.From
Syntax
ItemExpression.From(function as function) as record
About
Returns the abstract syntax tree (AST) for the body of function
, normalized into an item expression:
- The function must be a 1-argument lambda.
- All references to the function parameter are replaced with ItemExpression.Item.
- The AST will be simplified to contain only nodes of the kinds:
Constant
Invocation
Unary
Binary
If
FieldAccess
An error is raised if an item expression AST cannot be returned for the body of function
.
This function is identical to RowExpression.From
.
Example 1
Returns the AST for the body of the function each _ <> null
.
Usage
ItemExpression.From(each _ <> null)
Output
[
Kind = "Binary",
Operator = "NotEquals",
Left = ItemExpression.Item,
Right =
[
Kind = "Constant",
Value = null
]
]
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho