Haskell中的递归函数“游戏”
I don't quite understand the following code: 我不太明白以下代码: game :: ([Move], Towers) -> Towersgame ([], towers) = towersgame situation = game (move sit...
Windows:将Haskell-Source-Code加载到ghci中
I am a newbie to Haskell and my problem is probably very trivial, yet I do not know how to solve it. 我是Haskell的新手,我的问题可能非常简单,但我不知道如何解决它。 I created a m...
[2017.02.21] 《Haskell趣学指南 —— Learning You a Haskell for Great Good!》
{-2017.02.21-22 《Haskell趣学指南 —— Learning You a Haskell for Great Good!》学习了Haskell的基本语法,并实现了一些模块和程序,学习的时候,应该注意GHCI模式和文本模式时的一些语法的差异[官网](http://learnyoua...
Haskell / GHC能否自行报告其GC统计数据?
I'm thinking that having a server to self-report its memory usage would be handy. 我认为让服务器自我报告其内存使用情况会很方便。 I have read the section on memory profiling...
Haskell是个神码语言
Haskell语言是一种函数式编程语言,而且是具有lazy evaluation(懒求值)特性的函数式编程语言。一开始看见函数式编程概念,感觉很高深,很computer science,很有计算机科学范儿,但是,学了一点之后,才发现它偏数学味儿,不是十分贴近computer science,特别对于...
Haskell 几乎无疼痛入门指南
当他重装Linux 机会虚拟机,安装 haskell 录制的过程中有什么。的方式来帮助那些谁在徘徊haskell进入外读者。基本概念:Haskell:是一门通用函数式语言。差点儿能够进行不论什么种类的开发,包含命令行,GUI,数据库,Web.源码能够跨平台: Linux,Mac, Windows, ...
haskell 开发环境配置
haskell是一门通用函数式语言,几乎可以进行任何种类的开发,包括命令行,GUI,数据库,Web.源代码可以跨平台: Linux,Mac, Windows, FreeBSD 等.haskell特点:函数式变成风格为主,命令式风格为辅,具有严格且方便易用的类型系统。类型检查可以帮助程序员在开发过程中...
如何提高Haskell程序的性能?
I'm working through the problems in Project Euler as a way of learning Haskell, and I find that my programs are a lot slower than a comparable C versi...
Haskell解析内存不足的大xml文件
So, I've played around with several Haskell XML libraries, including hexpat and xml-enumerator. After reading the IO chapter in Real World Haskell (ht...
在Haskell数据类型中键入类
In Haskell, one can define a data type like so: 在Haskell中,可以像这样定义数据类型: data Point1 = Point1 { x :: Integer , y :: Integer} Can one use type classe...
功能语言(Erlang,F#,Haskell,Scala)
1) Are functional languages suited for web applications development? 1)功能语言是否适合Web应用程序开发? 2) Are functional languages suited for business/ERP/CRM type...
Haskell中的“条件错误”
My original code is given below and works fine. I wanted to add range check of 'ind' and in the modified version I added an if statement. When I run i...
在Haskell数据类型中键入类
In Haskell, one can define a data type like so: 在Haskell中,可以像这样定义数据类型: data Point1 = Point1 { x :: Integer , y :: Integer} Can one use type classe...
在Haskell中将字符串解析为另一种数据类型
Recently I have been trying to create in Haskell a regex interpretor. What I did was create a new data type with all possible constructors (for sequen...
在haskell中定义多类型容器类,解决了绑定变量的问题
I'm having trouble with classes in haskell. 我在haskell的课上遇到麻烦。 Basically, I have an algorithm (a weird sort of graph-traversal algorithm) that takes as...
haskell:将小写字母更改为字符串列表中的大写字母[重复]
This question already has an answer here: 这个问题在这里已有答案: Haskell - Capitalize all letters in a list [String] with toUpper 3 answers Haskell - ...
如何在Haskell中打印列表的内存地址
I'm studying how some programming languages assign memory to structured data (in this case I'm studying arrays). 我正在研究一些编程语言如何为结构化数据分配内存(在这种情况下我正在研究数组...
Haskell类型类和C ++模板类
Is it possible to emulate the type class functionality of Haskell with C++ (or C#) templates? 是否可以使用C ++(或C#)模板模拟Haskell的类型类功能? Does it make sense or ...
Haskell或标准ML适合初学者?
I'm going to be teaching a lower-division course in discrete structures. I have selected the text book Discrete Structures, Logic, and Computability i...
Haskell - 从键盘读取的整数之和
I am trying to write a function that sums integers supplied one per line and stops when 0 is input. I have this so far: 我正在尝试编写一个函数,该函数对每行提供的整数求和,并在输入...