Explorer

core.collect-functions

description
Function expressions in the expression in pre-order. The position is the function's index in the function table
type
Fn(expr: @core.expression) -> List<@core.expression>
expression
fn(expr$0) =>
  @core.list-concat(
    left: match @core.is-function-expression(expr: $0) {
      true =>
        [$0],
      false =>
        []
    },
    right: @core.collect-functions-in-list(items: @core.expression-children(expr: $0), index: 0)
  )
visibility
public
core.collect-functions (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: be64MPp2uv-LehU6It4xQlF2i9rQnti6Ff6IQLxnW00
content hash: MSw69jzf9iN8adw8YpYUxjWBPpwbP7usLl9NTkVUgi4