-- Ex2.5
ex25 :: Picture -> Picture
ex25 p = checkerH (above p ((flipH . invertColour) p))
*UsePictures> printPicture (ex25 horse)
.......##...#######..###
.....##..#..#####..##.##
...##.....#.###..#####.#
..#.......#.##.#######.#
..#...#...#.##.###.###.#
..#...###.#.##.###...#.#
.#....#..##.#.####.##..#
..#...#.....##.###.#####
...#...#....###.###.####
....#..#....####.##.####
.....#.#....#####.#.####
......##....######..####
######..####......##....
#####.#.####.....#.#....
####.##.####....#..#....
###.###.####...#...#....
##.###.#####..#...#.....
#.####.##..#.#....#..##.
##.###...#.#..#...###.#.
##.###.###.#..#...#...#.
##.#######.#..#.......#.
###..#####.#...##.....#.
#####..##.##.....##..#..
#######..###.......##...
*UsePictures>
Personal memorandum for studying functional languages, theorem proving, and formal verification. But other topics might be included. Written in Japanese (Shift-JIS Encoding).
25 June, 2006
[Haskell] Exercise 2.5
良い絵を考えるのも面倒なので教科書の例をそのまま作ってみる。例によってUsePictures.hsに追記。
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment