Il giorno mercoledì 6 febbraio 2019 14:29:07 UTC+1, Pierpaolo Tofani ha
scritto:
>
> Hi
> I am trying a functional solution for a recurrent problem.
> I must balance 2 vectors :
>
> I must pass from A1 to A2 with following priority: assign aval qty first
> for recor
the inner is not.
>
> This might be of interest to you:
> http://clojure-doc.org/articles/language/laziness.html
>
> If you only want to do map for side effects, you could use dorun instead
> of doall.
>
> On 7 Feb 2019, at 12:04 PM, Pierpaolo Tofani > wrote:
>
> Hi
> i am new
Hi
i am new in clojure sorry.
In the snippet of code i used two map functions only to produce side
effects on two ref.
Even using doall no affect is produced on ref aaa and zzz, seems that the
sequence is still lazy.
But if i remove the final :done , and the repl show me the sequence
produced
Hi
I am trying a functional solution for a recurrent problem.
I must balance 2 vectors :
I must pass from A1 to A2 with following priority: assign aval qty first
for records with the same :cat , then to needs in early :day.
Thanking in advance for any kind of help.
PS
:day in format AAAMMDD