I need to zip two lists inclusively. I.e. keep values of the longer list and, possibly, add a default value for the shorter one:
e.g.
lst_a = [1,2,3] # len = 3
lst_b = [5,6,7,8] # len = 4
# no default values
inclusive_zip(lst_a, lst_b) = [(1,5),(5,6),(3,7),(None,8)]
# with default value (e.g. for position in 2D space)
inclusive_zip(lst_a, 0, lst_b, 0) = [(1,5),(5,6),(3,7),(0,8)]
I can make something of my own, but was wondering if there's a built-in or super simple solution.