linukso吧 关注:1,481贴子:173,551
  • 2回复贴,共1

Universial Theorem

取消只看楼主收藏回复

FBI 在这帖(http://tieba.baidu.com/p/2707079028)的 4 楼提出一个定理
-----------------8<-----------------8<-----------------
Universial Theorem:
3cm=ε+λ
ε=lenth(erection(penis))=lenth(penis)
λ=max(distance(v,u)), where v, u is any point on testicle.
Corollary:
Δε-0, which means ε is a constant Infinitesimals.
中文翻译:
第一定理:
3cm是算上蛋蛋的长度的
第二定理:
3cm的3cm是无穷小常量。
----------------->8----------------->8-----------------
我想没有用 haskell 实现的定理不是好定理,於是给出一个简单的实现
λ :: [[a]] -> String
λ = (++"cm") . show . foldl1 max . map length
试运行
$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> (++"cm") . show . foldl1 max . map length $ ["左蛋蛋", "右蛋蛋"]
"3cm"


1楼2013-11-16 09:38回复
    楼主又来了
    应广大羣众的要求,改进了一下
    $ ghci
    GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
    Loading package ghc-prim ... linking ... done.
    Loading package integer-gmp ... linking ... done.
    Loading package base ... linking ... done.
    Prelude> let 小丁丁 = return . (++"cm") . show . foldl1 max . map length :: [[a]] -> Maybe String
    Prelude> 小丁丁 ["左蛋蛋", "右蛋蛋"]
    Just "3cm"


    13楼2013-11-17 07:51
    回复
      2026-05-27 21:20:00
      广告
      不感兴趣
      开通SVIP免广告
      陰謀,絕對是陰謀!改等級那天剛好兩週年


      17楼2015-11-23 06:02
      回复