开发者

difference between an index and a value in haskell

I hear the two terms index and value used extensively in programming talk and know they mean different things. I'm confused, however as to what they exactly DO mean! And what the 开发者_如何学Cdifference is....?


If you have an array or a list like this:

[a,b,c,d,e,f,g,h]

then

  • 1 is the index of b
  • b is the value at the index 1
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜