yuujinchou icon indicating copy to clipboard operation
yuujinchou copied to clipboard

🍛 Curry the API (more)

Open favonia opened this issue 1 year ago • 2 comments

@jonsterling expressed that we should perhaps curry the API more aggressively. In particular, these four functions can be curried without causing confusion:

val include_singleton : Trie.path * (Param.data * Param.tag) -> unit
val include_subtree : Trie.path * (Param.data, Param.tag) Trie.t -> unit
val import_singleton : Trie.path * (Param.data * Param.tag) -> unit
val import_subtree : Trie.path * (Param.data, Param.tag) Trie.t -> unit

favonia avatar Jun 18 '24 15:06 favonia

Do you mean

val _ : Trie.path -> (Param.data * Param.tag) -> unit

or

val _ : Trie.path -> Param.data -> Param.tag -> unit

I'm working on this.

dannypsnl avatar Jan 09 '25 12:01 dannypsnl

val _ : Trie.path -> (Param.data * Param.tag) -> unit

Currently this one, but maybe @jonsterling can chime in.

favonia avatar Jan 10 '25 03:01 favonia