Your typing of the map is not correct;

Map(“A” -> Tag.of[Multiplication](3)) |+| ...

I think you can also use the syntax 3.multiplication (but you might need an 
‘import Tag._’ or ‘import Tags._’)

> On 28 Nov 2017, at 19:39, Gnani Swami <[email protected]> wrote:
> 
> Hi,
> 
> I am learning Scalaz, Thanks for a wonderful library.
> 
> Is it possible to multiply two maps?
> 
> Map("A" -> 3, "C" -> 4)  |*| Map("A" -> 4, "B" -> 9, "C" -> 8)
> 
> I also tried following but didn't work.
> Tag[(String,Int), Multiplication](Map("A" -> 3, "C" -> 4))  |+| 
> Tag[(String,Int), Multiplication] Map("A" -> 4, "B" -> 9, "C" -> 8)
> 
> Cheers
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "scalaz" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/scalaz.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"scalaz" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/scalaz.
For more options, visit https://groups.google.com/d/optout.

Reply via email to