VikkaLorel

MUD epur map

Oct 29th, 2020 (edited)
671
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from typing import List
  2.  
  3.  
  4. def epur(dirty_map: List[List[str]]):
  5.     return (r for r in dirty_map if set(r).difference({' '}))
  6.  
  7.  
  8. if __name__ == '__main__':
  9.     m = [...]  # put the map here
  10.     print(list(epur(m)))
  11.  
RAW Paste Data