Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Blaster/Optimize/Rewriting/OptimizeString.lean
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def normStringValue (f : Expr) (args : Array Expr) : TranslateEnvT Expr := do
if args.size != 1 then throwEnvError "normStringValue: only one argument expected"
let op := args[0]!
let some elms ← getListChars? op | return (mkApp f op)
return (mkStrLit (String.mk elms.toList))
return (mkStrLit (String.ofList elms.toList))

where
getListChars? (e : Expr) : MetaM (Option (Array Char)) := do
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.25.0
leanprover/lean4:v4.26.0
Loading