Table of contents
TOC
Collapse the table of content
Expand the table of content

ItemExpression.From

Owen Duncan|Last Updated: 4/19/2018
|
1 Contributor

ItemExpression.From(function as function) as record

About

Returns the 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
    • NotImplemented

An error is raised if an item expression AST cannot be returned for the body of function.

Example 1

Returns the AST for the body of the function each _ <> null

ItemExpression.From(each _ <> null)

KindBinary
OperatorNotEquals
Left[Record]
Right[Record]
© 2018 Microsoft