Example #1
0
def ysorted(backend, *args, **kwargs):
    return getbackend(backend).sorted(*args, **kwargs)
Example #2
0
def ydict(backend, *args, **kwargs):
    return getbackend(backend).create_dict(*args, **kwargs)
Example #3
0
def yunion_find(backend, *args, **kwargs):
    import yaupon.data_structures.union_find as union_find
    return union_find.UnionFind(getbackend(backend), *args, **kwargs)
Example #4
0
def ydeque(backend, *args, **kwargs):
    return getbackend(backend).create_deque(*args, **kwargs)
Example #5
0
def yheap(backend, *args, **kwargs):
    import yaupon.data_structures.pairing_heaps as pairing_heaps
    return pairing_heaps.PairingHeap(getbackend(backend), *args, **kwargs)