leanprover-community / mathlib

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

Zulip Chat Archive

Stream: new members

Topic: Equivalent to python range function


Bolton Bailey (Nov 07 2020 at 11:09):

Hello

In the course of trying to formalize a statement in lean, I wanted to be able to use obtain a list of naturals from 0 to n for a given variable n. Is there a builtin for this?

Eric Wieser (Nov 07 2020 at 11:40):

docs#list.range


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll