Questions tagged «as-pattern»

1
除了模式外,@在Haskell中还有什么意思?
我目前正在研究Haskell,并尝试了解一个使用Haskell实施密码算法的项目。在在线阅读向您了解Haskell for Great Good之后,我开始理解该项目中的代码。然后我发现我陷入了下面带有“ @”符号的代码: -- | Generate an @n@-dimensional secret key over @rq@. genKey :: forall rq rnd n . (MonadRandom rnd, Random rq, Reflects n Int) => rnd (PRFKey n rq) genKey = fmap Key $ randomMtx 1 $ value @n 在这里,randomMtx定义如下: -- | A random matrix having …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.