title: "Map" with more than one parameter and iterating without "for"
body: <ol>
  <li><p>Have the following line of code, which reads pairs of words from a file, splits them, and returns a tuple, where the first index of each tuple is either the first or second word. 
  For example, a <code>Bob, Smith</code> will translate to <code>[(Bob, Smith)]</code> and <code>[(Smith, Bob)]</code> respectively. I map this to every pair in <code>g.readlines()</code>.</p>
  
  <p>Was wondering if it was at all possible to pass a <strong>second</strong> parameter <code>flip = True</code>, into a more general word_flip() function which can be used with map? </p>
  
  <pre><code>first_word_is_first = map(first_second_split, g.readlines())
  
  first_word_is_second = map(second_first_split, g.readlines())
  </code></pre></li>
  <li><p>A random question regarding a more functional approach, If I am given a string, and I would like to partition that string based on the attribute of each word (ie. <code>Alex Smith AGE 35 420</code>) is there a more functional way approach such a problem besides iterating through <code>string.split()</code> and dividing the line into str variables, <code>name</code>, <code>age</code>, <code>room_number</code> or using regex? Is it at all possible to use map, filter, or itertools? Would preferably pass through the string once.</p></li>
  </ol>