mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 22:38:04 +02:00
Beispiele für Listenoperationen in Haskell hinzugefügt
This commit is contained in:
parent
7e99fea83a
commit
dbf66188b6
4 changed files with 19 additions and 3 deletions
|
@ -0,0 +1,13 @@
|
|||
Prelude> let mylist = [1,2,3,4,5,6]
|
||||
Prelude> head mylist
|
||||
1
|
||||
Prelude> tail mylist
|
||||
[2,3,4,5,6]
|
||||
Prelude> take 3 mylist
|
||||
[1,2,3]
|
||||
Prelude> drop 2 mylist
|
||||
[3,4,5,6]
|
||||
Prelude> mylist
|
||||
[1,2,3,4,5,6]
|
||||
Prelude> mylist ++ sndList
|
||||
[1,2,3,4,5,6,9,8,7]
|
Loading…
Add table
Add a link
Reference in a new issue