Jump to content

Kronecker product: Difference between revisions

→‎{{header|Haskell}}: Some (<$>) -> fmap
(→‎{{header|Haskell}}: Some (<$>) -> fmap)
Line 34:
=> [[a]] -> [[a]] -> [[a]]
kprod xs ys =
let f = (<$>)fmap . (<$>)fmap . (*)
in concat $ ((fmap concat <$>) . transpose) <$> ((<$>)fmap (`f` ys) <$> xs)
 
main :: IO ()
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.