嵌入式编程语言 Hakaru

码农软件 · 软件分类 · 脚本编程语言 · 2019-07-31 11:57:13

软件介绍

Hakaru 是一个嵌入式编程语言,用于 Haskell

安装:

cabal update
cabal install hakaru

简单实例:

import Control.Monad (replicateM)
import Data.Dynamic (toDyn)
import Language.Hakaru.Types
import Language.Hakaru.Distribution
import Language.Hakaru.Metropolis

heads = Just (toDyn (Discrete True))

prog :: Measure Double
prog = do
   bias <- unconditioned (beta 1 1)
   replicateM 10 $ conditioned (bern bias)
   return bias

sample prog (replicate 10 heads)

本文地址:https://codercto.com/soft/d/11332.html

The Linux Command Line

The Linux Command Line

William E. Shotts Jr. / No Starch Press, Incorporated / 2012-1-17 / USD 39.95

You've experienced the shiny, point-and-click surface of your Linux computer-now dive below and explore its depths with the power of the command line. The Linux Command Line takes you from your very ......一起来看看 《The Linux Command Line》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码