gistlib
let rec max_value lst = match lst with | [] -> failwith "empty list" | [x] -> x | hd::tl -> max hd (max_value tl) 131 chars6 lines
let rec max_value lst = match lst with | [] -> failwith "empty list" | [x] -> x | hd::tl -> max hd (max_value tl)
main.rbdef max_value(lst) lst.max end 35 chars4 lines
def max_value(lst) lst.max end
gistlibby LogSnag