1. 程式人生 > >《Two Dozen Short Lessons in Haskell》所有習題的索引

《Two Dozen Short Lessons in Haskell》所有習題的索引

《Two Dozen Short Lessons in Haskell》(Copyright © 1995, 1996, 1997 by Rex Page,有人翻譯為Haskell二十四學時教程,該書如果不用於贏利,可以任意釋出,但需要保留他們的copyright)這本書是學習 Haskell的一套練習冊,共有2本,一本是問題,一本是答案,分為24個章節。在這個站點有PDF檔案。幾年前剛開始學習Haskell的時候,感覺前幾章還可以看下去,後面的內容越來越難以理解。現在對函數語言程式設計有了一些瞭解後,再來看這些題,許多內容變得簡單起來了。

初學Haskell之前一定要記住:

把你以前學習面向過程的常規的程式語言,如Pascal、C、Fortran等等統統忘在腦後,函數語言程式設計完全是不一樣的程式設計模型,用以前的術語和思維來理解函數語言程式設計裡的概念,只會讓你困惑和迷茫,會嚴重地影響你的學習進度。

這個學習材料內容太多,想把整書全面翻譯下來非常困難,只有通過練習題將一些知識點串起來,從2012年底開始做這本書的習題,終於在2013年9月完成,Haskell果然很難,有些習題也沒有弄明白,這是全部習題答案的索引。

第23章沒有習題。

相關推薦

Two Dozen Short Lessons in Haskell所有習題索引

《Two Dozen Short Lessons in Haskell》(Copyright © 1995, 1996, 1997 by Rex Page,有人翻譯為Haskell二十四學時教程,該書如果不用於贏利,可以任意釋出,但需要保留他們的copyright)這本書是學習 Haskell的一套練習冊,共

Two Dozen Short Lessons in Haskell》(二十四)代數型別

這是《Two Dozen Short Lessons in Haskell》這本書的最後一章,第23章沒有習題。 這一章裡介紹了Haskell如果自定義一種型別,並且用一個雙人博弈遊戲為例子講解了如何使用這些型別,裡面簡單介紹了Minimax演算法。 至此,這本書全部學完,當然還沒用Haskell寫過什麼

An introduction to parsing text in Haskell with Parsec

util eof try xib reporting where its ner short Parsec makes parsing text very easy in Haskell. I write this as much for myself as for any

R magento seo esearchers Identify Two New Ancient Mammals in Bolivia

Artist’s impression of Theosodon arozquetai and Llullataruca shockeyi. Researchers at Case Western Reserve University and two othe

論文筆記《The application of two-level attention models in deep convolutional neural network for FGVC》

這篇文章是2015年的,作者使用提出了兩級注意力的方法,來進行細粒度分類。 以鳥類分類為例。作者在object-level和part-level兩個級別分別對鳥進行分類,將得到的分數相加綜合後得到最後的分類結果。 上圖是鳥分類在object-level的一個流程圖,先用select

Fixpoints in Haskell

What is a fixpoint?If you have a function from any set to itself, then a fixpoint of that function is any input that maps to itself. On a standard, graph y

所有文章索引

基礎篇 C++輸入處理的常見操作 建構函式 網路基礎之網路協議篇 真題篇 2019年秋招某公司C++開發真題 面試篇 重建二叉樹——面試題6《劍指offer》 列印從1到n的最大n位數——面試題12《劍指offer 》 在O(1)時間刪除連結串列結點——面試題13

Postgres資料庫獲取所有索引資訊的SQL

Study From:https://blog.csdn.net/u013992330/article/details/73870734 SELECT A.SCHEMANAME, A.TABLENAME, A.INDEXNAME, A.TABLESPACE, A.INDEXDEF, B.AMNAME,

in走不走索引?可以用哪個關鍵字代替?

網上有很多人說in不走索引,事實上我經過執行計劃自己測試發現,in明明就是走索引的。看來網上也不全可信啊。後來又查了以下,發現 MySQL 4.1 以上版本的 IN 是走索引的, 但4.0及其以下版本是不走索引的。 原來是這樣,4.0以下確實是不走索引的,難怪之前有人說。可以

(zhuan) Attention in Long Short-Term Memory Recurrent Neural Networks

have step points degree paper exc issues arr decision Attention in Long Short-Term Memory Recurrent Neural Networks by Jason Brownlee on

Setup Apache2 in Debian 9 and enable two ports for two sites

listen apachectl art 127.0.0.1 etc bsp default star oot [email protected]/* */:~# apt-get install apache2 [email protected]/*

in comment after two dashes (--) next character must be > not - (position: START_TAG seen ...

must 位置 sta exe com bsp err 而不是 dash Error executing Maven. in comment after two dashes (--) next character must be > not - (positio

LeetCode 442. Find All Duplicates in an Array (在數組中找到所有的重復項)

nts ext leet 日期 lin dot 目標 input output Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and oth

[TS] Swap two element in the array (mutation)

end fling i++ ould this rop cti swa key Shuffling is a common process used with randomizing the order for a deck of cards. The key proper

【轉】How to initialize a two-dimensional array in Python?

use obj class amp example list tty address add 【wrong way:】 m=[[element] * numcols] * numrowsfor example: >>> m=[[‘a‘] *3] * 2&g

Python習題-列出目錄下所有文件刪除文件夾

als rem file isf os.path usr path .get color 需求描述: 1、當前目錄下有很多文件夾、文件,統計/usr/local/這個目錄下,如果是文件夾,就給刪除 /usr/local/ f1 w1 f2 w2

【easy】438.Find All Anagrams in a String 找出字符串中所有的變位詞

真的是 for 所有 find 等於 哈希 bstr empty amp Input: s: "abab" p: "ab" Output: [0, 1, 2] Explanation: The substring with start index = 0 is "ab"

421. Maximum XOR of Two Numbers in an Array

可變 這樣的 TE 固定 需要 AI class turn copy 這題要求On時間復雜度完成, 第一次做事沒什麽思路的, 答案網上有不貼了, 總結下這類題的思路. 不局限於這個題, 凡是對於這種給一個 數組, 求出 xxx 最大值的辦法, 可能上來默認就是dp, 但

Thinking in Java 4th(Java程式設計思想第四版)文件、原始碼、習題答案

  Thinking in Java 4th 中、英文兩版pdf文件,書中原始碼及課後習題答案。連結:https://pan.baidu.com/s/1BKJdtgJ3s-_rN1OB4rpLTQ 密碼:2zc4   http://greggordon.org/java/tij4/solutions.

LaTeX: two figures in one line (兩個圖片置於同一行)

\begin{figure} \centering \begin{minipage}{.33\textwidth}   \centering   {\includegraphics[width=0.944\linewidth]{./figures/illust