

hasekell 初级入门
source link: https://segmentfault.com/a/1190000040269383
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

hasekell 初级入门
Due: Mon, Jun 28, 1:59pm
How to Submit
These files
must compile without errors
in GHCi. Put all non-working parts of your solution inthe comments! If your file does not compile, you will not get any points for the homework.
Please preserve the existing
doctest
comments in the template (the lines starting with
andthe results underneath). This will help the TA during grading.
If you can't solve a problem, you can get partial credit by describing in comments what you triedand where you got stuck. However, your explanation must convince the TA that really tried tosolve the problem.
Late submissions will not be accepted. Do not send solutions by email.
If submitting individually
: Just upload your submission to the assignment in Canvas.
Yoursubmission should consist of two files named
Tree.hs
Nat.hs.
If submitting as part of a team
Assign yourself to a “Group” in Canvas. Select “People” from the menu, then select the“Groups” tab. Click “Join” on a group whose name starts with “HW1”.
You must coordinate with your team members to all join the same group. When choosing agroup, please use the
smallest available
group number.
Do not add yourself to a group unless you have already coordinated and everyone has agreedto be in a group together.
Your file must contain the names and ID numbers of each member of your group in acomment at the top of your file. This is to ensure that nobody changed the composition of yourgroup. Put the
names (as stated in Canvas)
ONID IDs
of all team members as acomment at the top of the file.
If your submission does not include the names of all teammembers you will not get any points for the homework.
Your submission should consist of two files named
Tree.hs
Nat.hs.
Description
The goals of this assignment are to help you learn the basics of programming in Haskell: data types,functions, pattern matching, and recursion.
The assignment consists of two parts. For each part, you should download the correspondingtemplate, rename it, and add your definitions directly to the file.
VX: codinghelp
Recommend
-
53
《Windows系统管理》###################################################################什么是BIOS?如何进入BIOS?BIOS基本输入输出系统,一般按DEL或F2进BIOS设置程序。什么是虚拟机?虚拟机运行在计算机上的一款软件程序,模拟计算机硬件功能为其他软件程序...
-
115
Web技术的发展速度太快了,如果你不与时俱进,就会被淘汰。因此,为了应对即将到来的HTML5,本文总结了几个实用HTML5的初级技巧,希望能对你进一步学习好HTML5会有所帮助。新的Doctype声明XHTML的声明太长了,我相信很少会有前端开发人员能手写出这个Doctype声明。...
-
74
从大三接触前端工作到现在已有3年时间,因为本人本科专业是GIS(地理信息科学,2017届本科),唯一和前端相关的就是webgis,专业课程关于前端学的也是一知半解,其实在那个时候大家喊的大多数都是网页开发,学校的课程也都是最基础的网页开发课程,所以学的也不是...
-
84
JavaScript从初级往高级走系列————Virtual Dom
-
61
编者按:人工智能技术引发的失业危机是业界老生常谈的话题了。大家更多讨论的都是机器会取代一些低技能要求的岗位。可如今,高技能白领的工作也可以由机器来完成。但这就意味着白领工作岌岌可危了吗?其实也不尽然。机器在消除一些岗位的同时,也...
-
51
Linux初级运维工程师最佳学习笔记 for CenOS 7.x
-
64
问与答 - @Delav - 本人 17 届毕业生,在深圳做了一年自动化测试,现在想转 Python web 开发,平时空余时间都是自学 web 后端相关技术,基本的技能都有所了解。技能:熟练使用 Python ;
-
13
Promise入门到精通(初级篇)-附代码详细讲解 Promise ,中文翻译为 承诺,约定,契约 ,从字面意思来看,这应该是类似某种协议,规定了什么事件发生的条件和触发方法。 ...
-
4
任何先进的技术均与魔法无异【 经历了6个月的失踪,我将带着干货终究归来!【RocketMQ入门到精通】】什么是消息过...
-
4
【RocketMQ入门到精通】— RocketMQ初级特性能力 | Message Reliablity,消息可靠性(不能多也不能丢)如何解决? 精选 原创
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK