Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Full List Reverse

Status
Not open for further replies.

Minomol

Programmer
Apr 15, 2009
1
SK
This should be easy, however i am quite a beginner in this field, so i have a lotsa problems.

I tried using classic reverse function and while appending one item tried reversing it too. But it didn't work.

Example:
full_reverse([[[1,2,3],4,[5,6]],[7,8]], [[8,7],[[6,5],4,[3,2,1]]]).
=> true
 
First write reverse_list at level 0.
Then you would have to test if element is a list, then apply reverse_list to this element.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top