Skip to content

Commit

Permalink
docs: list counts
Browse files Browse the repository at this point in the history
  • Loading branch information
niekdt committed Aug 7, 2024
1 parent 6b08247 commit af679b1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/actionsheets/data/python/collections/list.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ code = "x = [1, 3, 9]"
action = "Define with _n_ repeated values _v_"
code = "x = [v] * n"

[create.count]
action = "List of _n_ increasing counts, starting from zero"
code = "list(range(n))"

[create.count.step]
action = "List of increasing counts, starting from zero with step size _s_"
code = "list(range(0, n, s))"

[create.revcount]
action = "List of _n_ decreasing counts to zero"
code = "list(range(n, 0, -1))"

[create.revcount.step]
action = "List of _n_ decreasing counts to zero, with step size _s_"
code = "list(range(n, 0, -s))"

[create.range]
action = "List of increasing integers between [_a_, _b_]"
code = "list(range(a, b))"

[create.tuple]
action = "From tuple"
code = """
Expand Down

0 comments on commit af679b1

Please sign in to comment.