Created
June 14, 2010 15:08
-
-
Save dgfitch/437803 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let FReplace (remove:string) (replace:string) (input:string) = input.Replace(remove, replace) | |
let Insert sql s1 s2 = | |
sql | |
|> FReplace "step1" s1 | |
|> FReplace "step2" s2 | |
(* OR, possibly more concise: *) | |
let PipeInsert s1 s2 = | |
FReplace "step1" s1 | |
>> FReplace "step2" s2 | |
>> FReplace "step3" "you could keep going" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment