This is just a draft. ``` for f in `find . -name '*.lean'`; do echo $f; gsed "/^import/s/\b\(.\)/\u\1/g" $f > tmp; gsed "/^Import/s/Import/import/g" tmp > $f; done ```
18 lines
379 B
Text
18 lines
379 B
Text
/-
|
||
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
|
||
Released under Apache 2.0 license as described in the file LICENSE.
|
||
Authors: Leonardo de Moura
|
||
-/
|
||
prelude
|
||
import Init.Data.Option.Basic
|
||
import Init.Util
|
||
|
||
universes u
|
||
|
||
namespace Option
|
||
|
||
@[inline] def get! {α : Type u} [Inhabited α] : Option α → α
|
||
| some x => x
|
||
| none => panic! "value is none"
|
||
|
||
end Option
|