Skip to content

Commit

Permalink
Merge branch 'master' into acmepjz_tex_parser
Browse files Browse the repository at this point in the history
# Conflicts:
#	BibtexQuery/Format.lean
  • Loading branch information
acmepjz committed Nov 15, 2024
2 parents 9d68012 + bdc2fc3 commit acf137b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
/build
/lean_packages
/.lake
6 changes: 3 additions & 3 deletions BibtexQuery/Main.lean
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def listDoublons (parseRes : List BibtexQuery.Entry) : List String :=
let keysOnly := parseRes.filterMap (fun entry => match entry with
| BibtexQuery.Entry.normalType _ name _ => some name
| _ => none)
let ⟨_, dupl⟩ : (Lean.HashMap String Unit) × List String :=
keysOnly.foldl (init := ⟨Lean.HashMap.empty, []⟩)
let ⟨_, dupl⟩ : (Std.HashMap String Unit) × List String :=
keysOnly.foldl (init := ⟨Std.HashMap.empty, []⟩)
(fun ⟨hsh, lst⟩ key =>
match hsh.find? key with
match hsh[key]? with
| none => ⟨hsh.insert key (), lst⟩
| some _ => ⟨hsh, (key :: lst)⟩)
dupl
Expand Down

0 comments on commit acf137b

Please sign in to comment.