mi-afp / tutorials Goto Github PK
View Code? Open in Web Editor NEWMaterials for MI-AFP course tutorials
Home Page: https://ccmi.fit.cvut.cz/en
License: Creative Commons Attribution Share Alike 4.0 International
Materials for MI-AFP course tutorials
Home Page: https://ccmi.fit.cvut.cz/en
License: Creative Commons Attribution Share Alike 4.0 International
EDUX is dead (sadly) and for this we should use course pages: https://courses.fit.cvut.cz/MI-AFP/
There's an example of function composition in tutorial 01:
isntTriangle = not . isTriangle
However, this won't compile with the isTriangle
function from the previous example.
In the tutorial 02_functions-types.md
factorial n = fac' n 1 where fac' 0 acc = acc fac' x acc = fac' (x - 1) (x * acc)
factorial 3
fac' 3 1
fac' 2 3
fac' 1 6
fac' 1 6
6
step 5. should be fac' 0 6
if I got it right.
Our system Edux is dead now and we can use AsciiDoc-based https://courses.fit.cvut.cz/MI-AFP that serve content from local Gitlab.
Tutorials 6 - 12 should be improved, some can be merged and substituted by Elm (#23) as another way of functional programming - frontend oriented. It may require also a change in tutorials 3, 4, and 5.
Both in tutorial #5.
(><)
swaps arguments in the resulthttps://github.com/MI-AFP/tutorials/blob/master/tutorials/05_functions-typeclasses.md#own-operators
Prelude> (><) xs ys = reverse xs ++ reverse ys
Prelude> (><) "abc" "xyz"
"zyxcba"
but the correct result should be
cbazyx
in multiple places
Mistakes of B172 materials to be fixed
Prelude T B C E>
(maybe also imports)[Hayoo]
is there)mkPolygon
switch PSize
and NoVertices
in type signaturegeneralSort
type change to Ord a => a
and fix return array(><)
, parametre (#11)(5 `foo` 3) 12
result (comment bellow by @klememi)Hi,
the Haskforce domain you are referencing from the first tutorial has expired.
Perhaps you can change it to their github repo?
https://github.com/MI-AFP/tutorials/blob/master/tutorials/01_fp-env.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.