
11 Sep
2020
11 Sep
'20
12:29 p.m.
On Thu, 10 Sep 2020, Li-yao Xia wrote:
Hi Compl,
From my limited understanding of your problem, you might be looking for techniques revolving around "variadic functions", that is "functions with variable number of arguments". I don't have any concrete resources to point to, but it's a pretty recurrent topic of discussion. Below are two relevant Q&A on Stack Overflow to start from [1,2]; you might find especially interesting ideas from reading the implementation of Text.Printf [3] and looking for other explanations of it online.
Another famous variadic function is quickCheck.