leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: lean4

Topic: Warning when I use a constant function


Kind Bubble (Dec 02 2022 at 00:12):

Whenever I make use of a constant function I get this warning:

Main.lean:524:238: warning: unused variable ‘q‘ [linter.unusedVariables]

I was wondering how I could turn this off, or maybe someone knows a way to produce a constant function which is a recommended alternative.

Kevin Buzzard (Dec 02 2022 at 00:19):

Just replace q with _


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll