Zulip Chat Archive
Stream: lean4
Topic: Functor Array
David Thrane Christiansen (Oct 15 2022 at 13:53):
I'm curious as to why there's no instance like this by default:
instance : Functor Array where
map := Array.map
As far as I can see, it satisfies the functor laws, preserves linearity as one would like, and is generally convenient.
Last updated: Dec 20 2023 at 11:08 UTC