Home   T3

T3 library in Haskell


version 2 As of July 2008, the grid-printing function putGrid has been refactored into a thin wrapper that prints a string returned by a pure function called "showGrid". showGrid eliminates some code duplication by using list functions extensively instead of hard-coding each row. It's not strictly necessary, but it's slightly more compact than the original, it's a better example for larger grids, and it's more idiomatic Haskell.
version 1 The original version of putGrid was adequate, but had some duplicated code, and had more imperative code than was necessary.

© 2008 Daniel S. Bensen   Home   About  Site map