diprism / perpl

The PERPL Compiler
MIT License
10 stars 5 forks source link

More than one but less than k usages #50

Open davidweichiang opened 2 years ago

davidweichiang commented 2 years ago

Maybe a can of worms but can the affine-to-linear transform be extended to k usages?

For example, in the coin pattern example, one might naturally want to generate a list of coin flips, and then for each suffix of the list, examine the top three elements. But this would result in touching each element of the list 3 times.

davidweichiang commented 1 year ago

Q: If we implemented this, would that really enable a more natural implementation of pattern*.ppl?