Documentation

util.dicts.to_pairs

Convert a dictionary to a list of 2-itemed lists.

Arguments:

def util.dicts.to_pairs(
  d: dict = None,
):

Returns a list of lists.

Example:

# [ [ 'john', 1 ], [ 'bob', 2 ], ['charles', 3 ] ]
return util.dicts.to_pairs(
  d={
    'john': 1,
    'bob': 2,
    'charles': 3,
  })