List_util.ml
forester.core
forester.frontend
forester.prelude
forester.render
1 2 3 4 5 6 7 8 let nub xs = let rec loop acc = function | [] -> List.rev acc | x :: xs -> let acc = if List.mem x acc then acc else x::acc in loop acc xs in loop [] xs
1 2 3 4 5 6 7 8
let nub xs = let rec loop acc = function | [] -> List.rev acc | x :: xs -> let acc = if List.mem x acc then acc else x::acc in loop acc xs in loop [] xs