NickColley / scrambo

Puzzle Scramble Generator
26 stars 5 forks source link

A more functional api #32

Open NickColley opened 8 years ago

NickColley commented 8 years ago

I really don't like the current API (wrote it a while ago).

I'd prefer something more functional, the current implementation holds state which I'd want to avoid.

It'd probably by nicer to keep it simple and pass an option object.

Maybe the current state features could be solved by currying?