01-21 transcript

01-21 transcript -...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ======================================================================== Transcript from January 21 class, slightly edited ======================================================================== GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Prelude> :load "../Classes/ics/WWW/code/jan21.hs" *Pictures> printPicture horse .......##... .....##..#.. ...##.....#. ..#.......#. ..#...#...#. ..#...###.#. .#....#..##. ..#...#..... ...#...#.... ....#..#.... .....#.#.... ......##.... *Pictures> let pp = printPicture *Pictures> pp horse .......##... .....##..#.. ...##.....#. ..#.......#. ..#...#...#. ..#...###.#. .#....#..##. ..#...#..... ...#...#.... ....#..#.... .....#.#.... ......##.... *Pictures> pp white ............ ............ ............ ............ ............ ............ ............ ............ ............ ............ ............ ............ *Pictures> horse [".......##...",".....##..#..","...##.....#.","..#.......#.","..#...#...#.","..#...###.#.",".#....#..##.","..#...#.....","...#...#....","....#..#....",".....#.#.. *Pictures> pp (invertColour horse) #######..### #####..##.## ###..#####.# ##.#######.# ##.###.###.# ##.###...#.# #.####.##..# ##.###.##### ###.###.#### ####.##.#### #####.#.#### ######..#### *Pictures> pp invertColour horse <interactive>:1:3: Couldn't match expected type `Picture' against inferred type `Picture -> Picture' In the first argument of `pp', namely `invertColour' In the expression: pp invertColour horse In the definition of `it': it = pp invertColour horse *Pictures> pp (flipH horse) ......##.... .....#.#.... ....#..#.... ...#...#.... ..#...#..... .#....#..##. ..#...###.#. ..#...#...#. ..#.......#. ...##.....#. .....##..#.. .......##... *Pictures> pp (flipV horse) ...##....... ..#..##..... .#.....##... .#.......#.. .#...#...#.. .#.###...#.. .##..#....#. .....#...#.. ....#...#... ....#..#.... ....#.#..... ....##...... *Pictures> pp (above horse horse) .......##... .....##..#.. ...##.....#. ..#.......#. Page 1 of 5 1/21/2010 http://www.cis.syr.edu/courses/cis252/lectures/01-21.trans ..#...#...#. ..#...###.#. .#....#..##. ..#...#..... ...#...#.......
View Full Document

This note was uploaded on 03/09/2010 for the course CIS CIS252 taught by Professor Jimroyer during the Spring '10 term at Syracuse.

Page1 / 5

01-21 transcript -...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online