Printing data arrays | Haskell

September 27th, 2021 12:40:37 PM

					
import Data.Array myArray = array (1, 3) [(1, "a"), (2, "b"), (3, "c")] main = do print myArray print $ myArray ! 2 print $ bounds myArray print $ indices myArray print $ elems myArray print $ assocs myArray

Featured Posts