📜  索引处的 haskell 列表元素 - Haskell 代码示例

📅  最后修改于: 2022-03-11 14:53:35.154000             🧑  作者: Mango

代码示例1
-- the "!!" operator return the n-th element from the list
-- *this is zero based

"string" !! 2 --> "r"

[10, 20, 30, 40] !! 1 --> 20