module Dry::Logic::Appliable

def to_ast

def to_ast
  if applied? && id
    [success? ? :success : :failure, [id, ast]]
  else
    ast
  end
end