Ce face operatorul !! ?
From HaskellWiki
(Difference between revisions)
m |
|||
| Line 1: | Line 1: | ||
| + | [[Category:Ro]] | ||
| + | |||
Extrage elementul al n-lea de pe o lista. | Extrage elementul al n-lea de pe o lista. | ||
| + | |||
| + | <haskell> | ||
| + | || || || || || || ||__ Hugs 98: Based on the Haskell 98 standard | ||
| + | ||___|| ||__|| ||__|| __|| Copyright (c) 1994-2005 | ||
| + | ||---|| ___|| World Wide Web: http://haskell.org/hugs | ||
| + | || || Bugs: http://hackage.haskell.org/trac/hugs | ||
| + | || || Version: September 2006 _________________________________________ | ||
| + | |||
| + | Haskell 98 mode: Restart with command line option -98 to enable extensions | ||
| + | |||
| + | Type :? for help | ||
| + | Hugs> [0,1,2,3,5] !! 3 | ||
| + | 3 | ||
| + | Hugs> | ||
| + | |||
| + | |||
| + | </haskell> | ||
Current revision
Extrage elementul al n-lea de pe o lista.
|| || || || || || ||__ Hugs 98: Based on the Haskell 98 standard ||___|| ||__|| ||__|| __|| Copyright (c) 1994-2005 ||---|| ___|| World Wide Web: http://haskell.org/hugs || || Bugs: http://hackage.haskell.org/trac/hugs || || Version: September 2006 _________________________________________ Haskell 98 mode: Restart with command line option -98 to enable extensions Type :? for help Hugs> [0,1,2,3,5] !! 3 3 Hugs>
