Advertisement
VikkaLorel

MUD epur map

Oct 29th, 2020 (edited)
1,963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement