最新文章列表

haskell - types and typeclasses - type parameters

A value constructor can take some values parameters and then produce a new value. For instance, the Car constructor takes three values and produces a car value. In a similar manner, type constructors  ...
joe.bq.wang 评论(0) 有590人浏览 2013-04-19 09:39

haskell - types and typeclasses - new types

We have already covered some existing haskell types and typeclasses. In this chapter, we'll learn how to make our own and how to put them to work!   First we will introduce new types and we will se ...
joe.bq.wang 评论(0) 有637人浏览 2013-04-19 09:35

haskell - modules - define your own modules

this is an additional post called "haskell - modules - import and common modules".    We've looked at some cool modules so far, but how do we make our own module? Almost every programming ...
joe.bq.wang 评论(0) 有645人浏览 2013-04-19 09:34

haskell - Modules - import, common modules

Module in Haskell is a re-use unit where you can put things that is generic enough then the module it exports can be used in a multitude of different programs.A Haskell module is a collection of rela ...
joe.bq.wang 评论(0) 有532人浏览 2013-04-19 09:33

Haskell - Higher order functions

Haskell functions can take functions as parameters and return functions as return values. A function that does either of those is called a higher order function. Higher order functions aren't just a ...
joe.bq.wang 评论(0) 有538人浏览 2013-04-19 09:32

haskell - recursion

Haskell is such an language that you can leverage aided with recursion, you can solve a load of issues.    we will going to examine some examples which can be solved by the recursion, problem such a ...
joe.bq.wang 评论(0) 有362人浏览 2013-04-18 14:30

haskell - syntax in functions - case expressions

This is an advanced topic to the post haskell - syntax in functions , where we wil dicuss the the case expressions.    By the name,  you might have figured out that the case expression is, well, exp ...
joe.bq.wang 评论(0) 有403人浏览 2013-04-18 11:18

haskell - syntax in functions - where clause

This is an advanced topic to the post haskell - syntax in functions , where we wil dicuss the let in construct.    Some general guideline about the 'let in' binding. Where bindings are a syntactic c ...
joe.bq.wang 评论(0) 有321人浏览 2013-04-18 11:06

haskell - syntax in functions - guards

This is an advanced topic to the post haskell - syntax in functions , where we wil dicuss the Guards in functions.Whereas patterns are a way of making sure a value conforms to some form and deconstru ...
joe.bq.wang 评论(0) 有450人浏览 2013-04-18 10:57

haskell- syntax in functions

In this post we will examine some of the cool syntax that  involves hte discussion of pattern matching, we will then discuss some advanced topic such as guard, where clause, let in and case statement, ...
joe.bq.wang 评论(0) 有299人浏览 2013-04-18 10:48

Quick sort V.S. Merge sort

终于写完了这一章 本章全面地涉及了quick sort和merge sort的方方面面。同其他章节一样,即覆盖传统的imperative算法,也覆盖functional(函数式)算法。 首先展示的是著名的只有2行的Haskell快速排序算法。之后,针对Partition给出了一些小的改进。并且用两种方法严格证明了快速排序的平均性能。此后,我给出了各种著名的工程方法:2路partition, 3路 ...
liuxinyu95 评论(0) 有1320人浏览 2013-04-09 14:48

Haskell编程参考资源

The real world Haskell http://book.realworldhaskell.org/ 非常实用,大量的例子。让你学会如何用Haskell处理实际中的问题。 Learn You a Haskell for Great Good! http://learnyouahaskell.com/chapters 页面很轻松幽默,适合入门者。从零开始学。
yacobe 评论(0) 有570人浏览 2013-04-07 12:32

haskell - write haskell modules and load/import in ghci

You may want to write up some haskell modules and put it into the interactive ghci command prompt so that you can see how it works out... it is more  a repl things. suppose that you have write the fo ...
joe.bq.wang 评论(0) 有485人浏览 2013-04-03 19:03

haskell - load and unload modules

in haskell, you can dynamicall add or unload modules in the ghci interactive command prompt.    Load module Prelude> import Data.Map Prelude Data.Map>  or  Prelude> :m +Data.Map Prelud ...
joe.bq.wang 评论(0) 有354人浏览 2013-04-03 16:55

haskell - interactive evaluation at the prompt

Like most other language, haskell also has an interative prompt where you use repl way to quickly run and test your code. however, since haskell do no thave the statement ending sign such as the ; wh ...
joe.bq.wang 评论(0) 有743人浏览 2013-04-02 19:04

haskell - type and typeclasses

Haskell has unique type and typeclasses, in this post with exmaple, we will check on the following.   :t command and the types typeclasses 101 well-known type classes, Eq, Ord, Ordering, Num, Bo ...
joe.bq.wang 评论(0) 有616人浏览 2013-03-25 14:55

haskell - Starting out

Haskell is a pure functional programming languge, We will later come back to things like pure and functional. In this post, we will first check on the surface, how it looks like, how it works, and et ...
joe.bq.wang 评论(0) 有634人浏览 2013-03-20 16:13

Sequence

经过了14个月锱珠积累,这一章终于脱稿了。 这一章具有里程碑式的意义。这一章写好后,所有的基本数据结构,从易到难: 二叉树,红黑树,AVL树,Trie,Patricia, Suffix tree,B-tree,binary heap,Leftist Heap, Skew Heap, 二项式heap,斐波纳契Heap,队列,序列 就全部给出了函数式实现。 我们面前已经没有任何基本数据结构的阻碍,使 ...
liuxinyu95 评论(0) 有958人浏览 2012-10-10 15:50

Learn Haskell(四)

强大的类型系统是Haskell的一个非常大的优势。   Haskell所有表达式类型在编译期判断。这样的话,可以使得代码 更加安全,比如说,拿一个整数和一个字符串进行除法运算是没办法进行的,那么在编译器就会直接报错,不会等到运行时程序崩溃才知道。Haskell与 Java不一样,Haskell能够进行类型推断(Type Inference),也就是说,你不需要明确的说100是个数字 ...
wawlian 评论(0) 有2005人浏览 2012-08-12 22:11

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) .net(54785) 编程(39454) JSP(37542) 数据结构(36424) Eclipse(31254) PHP(29988) F#(26079) 算法(24867) 脚本(19840) J#(18922) JDBC(17888) ASP(17480) JDK(14881) JVM(14450)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics