
6 Apr
2011
6 Apr
'11
7:57 p.m.
I noticed a pattern that in hamlet $forall i often retrieve the same value from a map, Sometimes 3,4 times. $forall row <- rs <td>#{getStr "form_name" row} <td>#{getStr "docname" row} ... <td>#{fromMaybe "" (IntMap.lookup (getInt "form_id" row) counties)} <td>#{fromMaybe "" (IntMap.lookup (getInt "form_id" row) customers)} Would it be possible to allow let statement in forall for often used values ? Regards, Vagif Verdi