Last active
July 11, 2016 13:27
-
-
Save AlainODea/c30d55ff1a7c73f7ea4da0543275be01 to your computer and use it in GitHub Desktop.
Haskell interactive (GHCi/Intero) example of obtaining a Salesforce.com link from an email subject line ref
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 refToSalesforceLink inst x = concat [inst, take 5 $ drop 16 x, "0000", take 6 $ drop 21 x] | |
> refToSalesforceLink "https://na123.salesforce.com/" "ref:_00A10cAbC._100A013ABCD:ref" | |
"https://na123.salesforce.com/100A0000013ABCD" | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment