lean4-htt/src/Lean/Compiler/BorrowedAnnotation.lean
Leonardo de Moura f67c93191f feat: use |>.
2020-11-19 08:38:47 -08:00

16 lines
385 B
Text

/-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
def markBorrowed (e : Expr) : Expr :=
mkAnnotation `borrowed e
@[export lean_is_marked_borrowed]
def isMarkedBorrowed (e : Expr) : Bool :=
annotation? `borrowed e |>.isSome
end Lean