shithub: puzzles

Download patch

ref: c5e253a9f9d3d651227ccad56e2c7526ee1f3eba
parent: 14e1e05510ac02a5502823bafe46d98c6fab3e5c
author: Simon Tatham <anakin@pobox.com>
date: Thu Apr 20 13:27:21 EDT 2023

Reorganise the dsf API into three kinds of dsf.

This is preparing to separate out the auxiliary functionality, and
perhaps leave space for making more of it in future.

The previous name 'edsf' was too vague: the 'e' stood for 'extended',
and didn't say anything about _how_ it was extended. It's now called a
'flip dsf', since it tracks whether elements in the same class are
flipped relative to each other. More importantly, clients that are
going to use the flip tracking must say so when they allocate the dsf.

And Keen's need to track the minimal element of an equivalence class
is going to become a non-default feature, so there needs to be a new
kind of dsf that specially tracks those, and Keen will have to call it.

While I'm here, I've renamed the three dsf creation functions so that
they start with 'dsf_' like all the rest of the dsf API.