摘要
Haskell的惰性计算特性使笔者在开发软件时解决了其它语言很难解决的一些问题,但如何在实际编程中充分利用这一特性,讨论的文章较少。该文详细介绍Haskell的惰性计算特性,并通过几个相关的简单例子,阐述如何利用惰性计算特性来编写简洁优美且功能强大的程序。
The features of lazy evaluation of Haskell give us a great power to solve some difficult problems which are hard to deal with by other programming languages.But there are few papers on discussing how to use these features in applications.This paper introduces the features of lazy evaluation of Haskell in detail and explains how to design concise and powerful programs through several small examples by using these features.
出处
《计算机工程与应用》
CSCD
北大核心
2006年第10期97-99,122,共4页
Computer Engineering and Applications
基金
欧盟项目TYPES(编号:typesproject29001)
关键词
函数式语言
HASKELL
惰性计算
列表内涵
高阶函数
functional language, Haskell,lazy evaluation,list comprehensions, higher-order function