本月博客排行
-
第1名
龙儿筝 -
第2名
zysnba -
第3名
johnsmith9th - wy_19921005
- sgqt
年度博客排行
-
第1名
宏天软件 -
第2名
青否云后端云 -
第3名
龙儿筝 - gashero
- wallimn
- vipbooks
- wy_19921005
- benladeng5225
- fantaxy025025
- javashop
- qepwqnp
- e_e
- 解宜然
- zysnba
- ssydxa219
- sam123456gz
- ranbuijj
- arpenker
- tanling8334
- kaizi1992
- sichunli_030
- xpenxpen
- gaojingsong
- wiseboyloves
- xiangjie88
- ganxueyun
- xyuma
- wangchen.ily
- jh108020
- zxq_2017
- jbosscn
- lemonhandsome
- luxurioust
- Xeden
- lzyfn123
- forestqqqq
- zhanjia
- nychen2000
- ajinn
- wjianwei666
- johnsmith9th
- hanbaohong
- daizj
- 喧嚣求静
- silverend
- mwhgJava
- kingwell.leng
- lchb139128
- lich0079
- kristy_yy
最新文章列表
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
Quick sort V.S. Merge sort
终于写完了这一章
本章全面地涉及了quick sort和merge sort的方方面面。同其他章节一样,即覆盖传统的imperative算法,也覆盖functional(函数式)算法。
首先展示的是著名的只有2行的Haskell快速排序算法。之后,针对Partition给出了一些小的改进。并且用两种方法严格证明了快速排序的平均性能。此后,我给出了各种著名的工程方法:2路partition, 3路 ...
Haskell编程参考资源
The real world Haskell
http://book.realworldhaskell.org/
非常实用,大量的例子。让你学会如何用Haskell处理实际中的问题。
Learn You a Haskell for Great Good!
http://learnyouahaskell.com/chapters
页面很轻松幽默,适合入门者。从零开始学。
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 ...
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 ...
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 ...
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 ...
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 ...
Learn Haskell(四)
强大的类型系统是Haskell的一个非常大的优势。
Haskell所有表达式类型在编译期判断。这样的话,可以使得代码
更加安全,比如说,拿一个整数和一个字符串进行除法运算是没办法进行的,那么在编译器就会直接报错,不会等到运行时程序崩溃才知道。Haskell与
Java不一样,Haskell能够进行类型推断(Type
Inference),也就是说,你不需要明确的说100是个数字 ...