Skip to content

Commit

Permalink
fsharplint: tweak some hints
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Sep 26, 2022
1 parent 2c20800 commit d9d9f43
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fsharplint.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,17 @@
"(Array.take x y, Array.skip x y) ===> Array.splitAt x y",
"(Seq.take x y, Seq.skip x y) ===> Seq.splitAt x y",

"List.empty ===> []",
"Array.empty ===> [||]",
"[] ===> List.Empty",
"List.empty ===> List.Empty",
"[||] ===> Array.empty",
"\"\" ===> String.Empty",

"x::[] ===> [x]",
"[x] ===> x::List.Empty",
"pattern: [x] ===> x::[]",

"x @ [] ===> x",
"x @ List.Empty ===> x",
"x @ List.empty ===> x",

"List.isEmpty [] ===> true",
"Array.isEmpty [||] ===> true",
Expand Down

0 comments on commit d9d9f43

Please sign in to comment.