Skip to content

Add example exercise answers to wiki? #213

@skokenes

Description

@skokenes

Hi, I'm working through the exercises at https://calmm-js.github.io/partial.lenses/exercises.html and am finding them really helpful. However, as I get towards the end I am finding that I'm not sure about what I'm doing exactly, even if I can get the correct answer. For example, I struggled for a while with figuring out the isomorphism example. I ended up with an answer like this that passed the test:

const a = L.conjugate(L.json(),L.pick({bar: ["foo", L.array(L.complement)]}));
const b = L.conjugate(L.json(), L.pick({foo: ["bar", L.array(L.complement)]}));
const iso = L.iso(L.get(a), L.get(b));

My issue now is that I have no clue of the "quality" of the answer. Have you thought at all about putting example solutions to these exercises in the wiki? It would be a nice resource for beginners like myself to learn from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions