Skip to main content
edited title
Link
user64494
  • 29.1k
  • 4
  • 29
  • 56

How does MapThread work with Associations?

edited title
Link
kglr
  • 400.5k
  • 18
  • 488
  • 929

How does MapThread work with AssociactionsAssociations

Source Link
Niki Estner
  • 36.4k
  • 3
  • 92
  • 156

How does MapThread work with Associactions

According to the documentation, MapThread works on Association objects. But it doesn't seem to evaluate the passed function. For example:

MapThread[#1 + #2 &, {<|a -> 1, b -> 2|>, <|a -> 5, b -> 6|>}]

returns:

<|a -> (#1 + #2 &)[1, 5], b -> (#1 + #2 &)[2, 6]|>

I would have expected <| a -> 6, b -> 8 |>.