Skip to content

Commit 0ceb8ca

Browse files
Florian KroenertFlorian Kroenert
authored andcommitted
Extended docs, version bump
1 parent 16ec10e commit 0ceb8ca

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ A domain specific language for Dynamics CRM allowing for easy text template proc
2525
- [Not](#not)
2626
- [IsNull](#isnull)
2727
- [Coalesce](#coalesce)
28+
- [With](#with)
2829
- [Case](#case)
2930
- [IsEqual](#isequal)
3031
- [IsLess](#isless)
@@ -217,6 +218,22 @@ If parentaccountid is not null, it will be used.
217218
Otherwise, if parentcontactid is not null, it will be used.
218219
If none of these two are not null, the static "None" will be used.
219220

221+
### With
222+
**Available since: v3.9.17**
223+
224+
Gives possibility to save expressions into variables to reuse them.
225+
Especially useful for expensive expressions such as fetches.
226+
Takes a dictionary object containing the variable keys and values as first parameter and a Lambda function as second parameter.
227+
228+
All names in the lambda parameters have to be present with the same name as variable keys in the dictionary object.
229+
230+
Example:
231+
``` JavaScript
232+
With({ fragments: ["Lord", "of", "the", "Rings"] }, ( fragments ) => Join(" ", Map(fragments, (s) => Substring(s, 0, 1))))
233+
```
234+
235+
will result in `"L o t R"`.
236+
220237
### Case
221238
**Available since: v3.9.6**
222239

build.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let sha = Git.Information.getCurrentHash()
3535
// version info
3636
let major = "3"
3737
let minor = "9"
38-
let patch = "16"
38+
let patch = "17"
3939

4040
// Follow SemVer scheme: http://semver.org/
4141
let asmVersion = major + "." + minor + "." + patch

0 commit comments

Comments
 (0)