Structurally, I'd say your program is just fine. But, it did take me
a while to convince myself that your program worked, and understand
why, so I'd say it is less clear than it could be.
When striving for clarity, it is essential to:
1. Break your program into small, easily understandable functi
On Dec 25, 9:08 am, "Heinz N. Gies" wrote:
> On Dec 23, 2009, at 6:04 , Nicolas Buduroi wrote:
>
> > Hi, today I needed to use the map function on multiple collections
> > which didn't had all the same length. In this case, it returns a
> > sequence of the size of smallest one. But the problem I
On Dec 25, 1:52 am, Tom Hicks wrote:
> A slight modification, which I think avoids counting each collection
> twice:
>
> (defn append-val [val & colls]
> (let [lengths (map count colls)
> maxlen (apply max lengths)]
> (map #(concat %1 (repeat (- maxlen %2) val)) colls lengths)
> )
What is the most clear and idiomatic way to convert arabic numbers to
roman notation? My take:
(def roman
(hash-map
1 "I",
4 "IV",
5 "V",
9 "IX",
10 "X",
40 "XL",
50 "L",
90 "XC",
100 "C",
400 "CD",
500 "D",
900 "CM",
1000 "M"
)
)
(defn to-r
On Dec 23, 2009, at 6:04 , Nicolas Buduroi wrote:
> Hi, today I needed to use the map function on multiple collections
> which didn't had all the same length. In this case, it returns a
> sequence of the size of smallest one. But the problem I was facing was
> required to map until the end of the
On Dec 24, 6:14 pm, atucker wrote:
> I am also curious about this. Apologies, possibly naive question
> ahead :)
>
> My background is in C++. By choosing to work with immutable values
> (i.e. with a lot of consts), I found that I was able to avoid most of
> explicit memory management, pointers
> Actually, I think shadowing core functions is not a great idea
Quite so! Common Lisp expressly prohibits this stuff for the COMMON-
LISP package.
> but I wanted to understand the principles involved here. Thanks
> again for your rapid help.
My pleasure. Happy Christmas!
--
You received this
Which edition of VS? Professional? Express?
The ToolsVersion="4.0" versus 3.5 should not be a problem.
The 'reference component not found' also not a problem.
These relate to the ability to target either 2.0 or 4.0. I get these
warnings also.
On Dec 24, 9:10 pm, Sriram P C wrote:
> Help->About