Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
1 people like it. Like the snippet!
A different approach to conditional debug functions
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
let dbgFunction d = printfn "[Beginning debug operation]" printfn "test %d" d printfn "[Debug operation complete]" let stndFunction d = printfn "test %d" d let printft v d = if v < 3 then stndFunction d else dbgFunction d printft 2 148418 printft 3 148418