# index()


Build an index from a list of items.


Usage


``` python
index(items)
```


## Parameters


`items: list`  
The items to index.


## Returns


`dict`  
A dictionary mapping each item to its position.


## Examples

``` python
>>> index(["a", "b", "c"])
```

{'a': 0, 'b': 1, 'c': 2}
