Gbury / ocaml-memgraph

A small library to output memory graph for ocaml values
MIT License
35 stars 3 forks source link

An example about partial application of closures #3

Open Kakadu opened 2 years ago

Kakadu commented 2 years ago

Dear @Gbury

Many thanks for your explanation. But in the current state of documentation I don't entirely understand how closures are represented, that have been already partially applied. In general I want to understand is it possible (or when) to recover from partially applied closure which parent function has been partially applied.

I added an example about partial applications in this PR

P.S. On attached SVG at the moment I don't entirely follow how a pointer to parent function does fit in memory representation described in your documentation