Zulip Chat Archive

Stream: Is there code for X?

Topic: list end-appending


Felix Weilacher (Nov 07 2022 at 18:05):

We think of list.cons as appending an element to the head of a list. Is there a function which appends an element to the tail? I suppose this could be accomplished by combining list.cons with two list.reverse's, but does this already exist?

If this does exist, is there a corresponding induction theorem?

Yaël Dillies (Nov 07 2022 at 18:06):

docs#list.concat, docs#list.reverse_induction

Felix Weilacher (Nov 07 2022 at 18:08):

thanks! although I am getting a 404 error with the reverse_induction link

Junyan Xu (Nov 07 2022 at 18:13):

docs#list.reverse_rec_on


Last updated: Dec 20 2023 at 11:08 UTC