about summary refs log tree commit diff
path: root/universe/ac_types/dict.py
blob: 9975ec8a970fa1d364230a33858c3ffc58d6a0bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Naming options for this module:
# - map (like Elixir and standard.el): Overwrites python's built-in `map` function.
# - dict: Overwrites python's built-in `dict` function.


def take(ks, xs):
    result = {}
    for k in ks:
        result[k] = xs[k]
    return result