Python Forum
list, map and put of the Queue in the Tree Data Structure
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list, map and put of the Queue in the Tree Data Structure
#1
Hi, I wonder if anyone could explain me what does this line of code do " list(map(fringe.put, tree_struct))"? Thanks
def createTree(leafValues):  
  
    fringe = queue.Queue()
    list(map(fringe.put, tree_struct))
    visited.add(root.str())
Reply


Messages In This Thread
list, map and put of the Queue in the Tree Data Structure - by longmen - Mar-29-2022, 10:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A data structure akulamartin 5 5,339 Nov-11-2016, 07:22 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020