I need to split a list into two equal lists.
For Example:
I have a list which consists of 10 items. I need to split the list into two equal parts(each with 5 items)
I have a list which consists of 9 items sometimes. I need to split the list into two parts(one with 5 items and other with 4 items)
Please suggest a solution for this.