Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132938 views
License: OTHER
1
Prelude> let mylist = [1,2,3,4,5,6]
2
Prelude> head mylist
3
1
4
Prelude> tail mylist
5
[2,3,4,5,6]
6
Prelude> take 3 mylist
7
[1,2,3]
8
Prelude> drop 2 mylist
9
[3,4,5,6]
10
Prelude> mylist
11
[1,2,3,4,5,6]
12
Prelude> mylist ++ sndList
13
[1,2,3,4,5,6,9,8,7]
14
15