# AssociationMap: It would be nice to have a key-sequence operator

**URL:** <https://community.wolfram.com/t/associationmap-it-would-be-nice-to-have-a-key-sequence-operator/7114>\
**Category:** Ideas\
**Tags:** data-science\
**Created:** [November 4, 2015, 7:45pm UTC](https://community.wolfram.com/t/associationmap-it-would-be-nice-to-have-a-key-sequence-operator/7114 "2015-11-04T19:45:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccarter](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/ccarter/32/36312_2.png) [@ccarter](https://community.wolfram.com/u/ccarter)\
**Post date:** [November 4, 2015, 7:45pm UTC](https://community.wolfram.com/t/associationmap-it-would-be-nice-to-have-a-key-sequence-operator/7114/1 "2015-11-04T19:45:55Z")

</div>

I find I am using AssociationMap more and more.

It would be nice to have an equivalent to Map’s /@ key-sequence.

For example, suppose \<@ could be the sequence for AssociationMap, then we would have:

```
Sin[Pi/#]&<@Range[10]  

```

would give:

```
<|1 -> 0, 2 -> 1, 3 -> Sqrt[3]/2, 4 -> 1/Sqrt[2]|>

```

Although, perhaps this creates unreadable code for distribution.

---

<div class="post-metadata">

**Author:** ![Vitaliyk](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vitaliyk/32/45591_2.png) [@Vitaliyk](https://community.wolfram.com/u/Vitaliyk)\
**Post date:** [November 4, 2015, 9:33pm UTC](https://community.wolfram.com/t/associationmap-it-would-be-nice-to-have-a-key-sequence-operator/7114/2 "2015-11-04T21:33:53Z")

</div>

Some functions recently were upgraded to an operator form. That is mentioned in the ref page - see 3rd line:

```
?AssociationMap

```

![2015-11-04_15-28-05.png](https://global.discourse-cdn.com/wolfram/original/3X/4/0/4042ad7aded11be2fdee7d8c313cf6192d81fad2.png)

This basically means:

```
AssociationMap[f]@{a, b, c, d}

```

![2015-11-04_15-30-12.png](https://global.discourse-cdn.com/wolfram/original/3X/2/9/292d8bd6adc2397ff4e719d50212e2a549d8ad9c.png)

So in your case

```
AssociationMap[Sin[Pi/#] &]@Range[4]

```

![2015-11-04_15-31-51.png](https://global.discourse-cdn.com/wolfram/original/3X/7/b/7b9f707187f9a95f27dcd1d79efcf551ff3f9cdd.png)

Not exactly what you need, - I just noting perhaps useful thing.
