[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Difference between Plazy and Pfunc (and PlazyEnvir) in practice



Hello all

Something that I’ve wondered lately is what the difference between Plazy and Pfunc actually is, especially in practice: When to use what. 

My relationship with the two is rather pragmatic in that when one doesn’t work I just use the other but I’d like to know a bit more about the difference between the two.

The help files for both classes are a bit sparse in this regard:

Pfunc: Function pattern
Description: Returns a Stream that returns values from the nextFunc.

Plazy: instantiate new patterns from a function
Description: Plazy evaluates a function that returns a pattern and embeds it in a stream.

Can someone here enlighten me? Thanks!

Best regards Mads