Empty returns true if this condition has no elements. False otherwise.
()
| 87 | |
| 88 | // Empty returns true if this condition has no elements. False otherwise. |
| 89 | func (g *LogicalExprGroup) Empty() bool { |
| 90 | if g.fn != nil { |
| 91 | return false |
| 92 | } |
| 93 | if g.prev != nil { |
| 94 | return g.prev.Empty() |
| 95 | } |
| 96 | return true |
| 97 | } |
| 98 | |
| 99 | func (g *LogicalExprGroup) Frame(fn func(*[]LogicalExpr) error) *LogicalExprGroup { |
| 100 | return &LogicalExprGroup{prev: g, op: g.op, fn: fn} |