mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Random -> Safe
This commit is contained in:
parent
66e541e9e5
commit
a70f8469c4
@ -85,7 +85,7 @@ head [1,2,3] -- Just (1)
|
||||
tail [3,2,1] -- Just ([2,1])
|
||||
init [1,2,3] -- Just ([1,2])
|
||||
last [3,2,1] -- Just (1)
|
||||
-- Random access - indexing
|
||||
-- Array access - indexing
|
||||
[3,4,5,6,7] !! 2 -- Just (5)
|
||||
-- Range
|
||||
1..5 -- [1,2,3,4,5]
|
||||
|
Loading…
Reference in New Issue
Block a user