
20 Aug
2007
20 Aug
'07
6:47 p.m.
Andrea Rossato wrote:
On Mon, Aug 20, 2007 at 04:44:47AM -0700, David Roundy wrote:
workspaces :: [WorkspaceId] -workspaces = [0..8] +workspaces = map (:"") ['1'..'9']
I find this a bit scary for someone new to Haskell, considered it is in the Config file. Anyway I'd suggest (:[]), still very scary, but probably more helpful to my ideal newcomer who's getting started with Haskell.
how about map show [1..9] , which actually kind of works for extension to numbers greater than 9? or add unnecessary parentheses if it seems clearer: map (show) [1..9] Isaac