diff options
author | Johannes Rudolph <johannes.rudolph@gmail.com> | 2012-10-10 13:48:39 +0300 |
---|---|---|
committer | Johannes Rudolph <johannes.rudolph@gmail.com> | 2012-10-10 13:48:39 +0300 |
commit | 33e0ae2de69eef191dbff69709ad5b78628e57ca (patch) | |
tree | fd63ac5b7519fdcc171a29911db819b0b4527281 | |
parent | 6379b2abc34d242d4caf41cfeecea4ab55b79587 (diff) | |
download | sbt-boilerplate-33e0ae2de69eef191dbff69709ad5b78628e57ca.tar.gz sbt-boilerplate-33e0ae2de69eef191dbff69709ad5b78628e57ca.tar.bz2 sbt-boilerplate-33e0ae2de69eef191dbff69709ad5b78628e57ca.zip |
Update README.md
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -14,10 +14,10 @@ expansion. Expansion follows these rules: - There's a current number of arguments `i` which is initialized to 22. - Code embraced in `[#` and `#]` is copied `i` times and the expansion is applied recursively with `i` being set accordingly. It is possible to define a custom separator - between the instances by putting the separator text between the `#` and the `]` of the closing + between the copied instances by putting the separator text between the `#` and the `]` of the closing bracket. If no separator is supplied `", "` is assumed. - - Digit `1` is replaced by `i` and digit `0` is replaced by `i - 1` unless the digit is - prefixed with `##` + - Everywhere digit `1` is replaced by `i` and digit `0` is replaced by `i - 1` unless the digit is + prefixed with `##`. ## Examples @@ -33,7 +33,7 @@ Start by writing out the function for only one argument: For the function to be copied for each possible number of arguments, enclose it in `[#` and `#]` (the newline between the closing `#` and `]` defines that instances should be -separated by newline and not by the default `, `): +separated by newline and not by the default `", "`): [#def applyFunc[P1, R](input: Tuple1[P1], func: (P1) => R): R = func(input._1)# |