diff --git a/theories/list.v b/theories/list.v index 63a3ce6ad2fb910c7bb03dd298f4cd39fac0b1e0..a9781689b4343ec23fcd0db9c908ee2646cfc44e 100644 --- a/theories/list.v +++ b/theories/list.v @@ -168,6 +168,7 @@ if the list [l] is empty. *) Fixpoint last {A} (l : list A) : option A := match l with [] => None | [x] => Some x | _ :: l => last l end. Global Instance: Params (@last) 1 := {}. +Global Arguments last : simpl nomatch. (** The function [resize n y l] takes the first [n] elements of [l] in case [length l ≤ n], and otherwise appends elements with value [x] to [l] to obtain