Expressions
|
Evaluate a Hail expression, returning the result. |
Base class for Hail expressions. |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of numeric type. |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
|
Expression of type |
- hail.expr.eval(expression)[source]
Evaluate a Hail expression, returning the result.
This method is extremely useful for learning about Hail expressions and understanding how to compose them.
The expression must have no indices, but can refer to the globals of a
Table
orMatrixTable
.Examples
Evaluate a conditional:
>>> x = 6 >>> hl.eval(hl.if_else(x % 2 == 0, 'Even', 'Odd')) 'Even'
- Parameters:
expression (
Expression
) – Any expression, or a Python value that can be implicitly interpreted as an expression.- Returns:
Any