[Include] Linked list implementation in PAWN
#3

Quote:
Originally Posted by ball
Посмотреть сообщение
What is the difference between LIST_push_back_* and LIST_push_front_*? I read documentation of this, but still I don't get it, for example

Код:
new List:list;
LIST_push_back_str(list, "This is a test");
Код:
new List:list;
LIST_push_front_str(list, "This is a test");
What is the difference?
It's pretty easy to understand:
One pushes the value at the back (end) of the list, and the other one pushes the value at the front (begin) of the list.
Let's simulate a "push back" and a "push front":
Given a list:
Код:
A -> B -> C
Let's push "D" at the back of the list
Код:
A -> B -> C -> D
after that let's push "E" at the front of the list
Код:
E -> A -> B -> C -> D
Reply


Messages In This Thread
Linked list implementation in PAWN - by BigETI - 22.11.2017, 10:27
Re: Linked list implementation in PAWN - by ball - 03.05.2018, 12:15
Re: Linked list implementation in PAWN - by BigETI - 03.05.2018, 13:37
Re: Linked list implementation in PAWN - by ball - 03.05.2018, 14:18
Re: Linked list implementation in PAWN - by BigETI - 03.05.2018, 15:16
Re: Linked list implementation in PAWN - by ball - 03.05.2018, 17:30
Re: Linked list implementation in PAWN - by BigETI - 03.05.2018, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)