from contiguous import *

## make_contiguous(item_list) creates contiguous memory with the items in
##     item_list in the order given.
## make_contiguous: (listof Any) -> Contiguous
def make_contiguous(item_list):
    length = len(item_list)
    new = Contiguous(length)
    for pos in range(length):
        new.store(pos, item_list[pos])
    return new
