Personal tools

Ce face operatorul !! ?

From HaskellWiki

Jump to: navigation, search


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>