We were creating hundreds of different names for simple lambdas. Example: ``` λ a, @coroutine.done a ```
13 lines
475 B
C++
13 lines
475 B
C++
/*
|
|
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
Author: Leonardo de Moura
|
|
*/
|
|
#pragma once
|
|
#include "kernel/environment.h"
|
|
#include "library/compiler/util.h"
|
|
namespace lean {
|
|
/** \brief Lift lambda expressions in `ds`. The result also contains new auxiliary declarations that have been generated. */
|
|
pair<environment, comp_decls> lambda_lifting(environment env, comp_decls const & ds);
|
|
};
|