Lazy lists or saving function state

Hi,I would like to use a function that takes a list, such as msum, andinstead apply it to each item of data as it arrives, essentiallyconverting a batch process into an online process. In some otherfunctional languages, it is possible to perform lazy evaluation of afunction on a list. Searching through code.kx.com brings no mentionof such a thing, so I thought next, it might be possible to save thestate of a function on each invocation (when iterating using / or ,for example).Is it possible to convert a batch function into an online functionwithout rewriting?Thanks in advance,Victor

To: personal-kdbplus@googlegroups.com
X-Mailer: Apple Mail (2.1077)

no, you have to do it yourself by hand

Regards,
Attila
On 5 Jan 2010, at 01:36, Victor Wong wrote:

> Hi,
>
> I would like to use a function that takes a list, such as msum, and
> instead apply it to each item of data as it arrives, essentially
> converting a batch process into an online process. In some other
> functional languages, it is possible to perform lazy evaluation of a
> function on a list. Searching through code.kx.com brings no mention
> of such a thing, so I thought next, it might be possible to save the
> state of a function on each invocation (when iterating using / or ,
> for example).
>
> Is it possible to convert a batch function into an online function
> without rewriting?
>
> Thanks in advance,
> Victor
>
> –
>
> You received this message because you are subscribed to the Google =
Groups “Kdb+ Personal Developers” group.
> To post to this group, send email to =
personal-kdbplus@googlegroups.com.
> To unsubscribe from this group, send email to =
personal-kdbplus+unsubscribe@googlegroups.com.
> For more options, visit this group at =
http://groups.google.com/group/personal-kdbplus?hl=en.
>
>