Skip to content

Inconsistent parameter ordering in List.Vector.insertIdx and List.insertIdx #32394

@ShreckYe

Description

@ShreckYe

For List in Lean:

def insertIdx (xs : List α) (i : Nat) (a : α) : List α

For List.Vector in Mathlib:

def insertIdx (a : α) (i : Fin (n + 1)) (v : Vector α n) : Vector α (n + 1)

The orders of the index parameter i, the value parameter a, and the list/vector parameter xs and v are inconsistent. Should this be fixed?

From #29400 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions