Rename an argument of the function Set.fold

This commit is contained in:
Gaith Hallak 2021-08-02 16:03:17 +03:00
parent 2bb69a5064
commit a94abab8eb

View File

@ -29,7 +29,7 @@ namespace Set =
function filter(p : 'a => bool, s : set('a)) : set('a) =
from_list(List.filter(p, to_list(s)))
function fold(f : ('a, 'b) => 'b, acc : 'b, l : set('a)) : 'b =
function fold(f : ('a, 'b) => 'b, acc : 'b, s : set('a)) : 'b =
List.foldr(f, acc, to_list(l))
function subtract(s1 : set('a), s2 : set('a)) : set('a) =