branch: master commit 34521c605fe525cc9b8f7b0e4ca991ca1eb25218 Author: Junpeng Qiu <qjpchm...@gmail.com> Commit: Junpeng Qiu <qjpchm...@gmail.com>
Update README about *-s functions --- README.org | 22 +++++++++++++--------- parsec.el | 22 +++++++++++++--------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/README.org b/README.org index a23f955..a189cf1 100644 --- a/README.org +++ b/README.org @@ -129,15 +129,19 @@ So we can They all have a variant that returns a string by concatenating the results in the list: - - =parsec-many-as-string= - - =parsec-many1-as-string= - - =parsec-many-till-as-string= - - =parsec-until-as-string= - - =parsec-collect-as-string= - - These variants accept the same arguments. The only difference is the return - value. In most cases I found myself using these variants instead of the - original versions that return a list. + - =parsec-many-as-string= or =parsec-many-s= + - =parsec-many1-as-string= or =parsec-many1-s= + - =parsec-many-till-as-string= or =parsec-many-till-s= + - =parsec-until-as-string= or =parsec-until-s= + - =parsec-collect-as-string= or =parsec-collect-s= + - =parsec-count-as-string= or =parsec-count-s= + + The =*-s= and =*-as-string= variants are the same, except the =*-s= variants + have a shorter name. Using these =*-s= functions are recommended if you're + using these variants more frequently. These variants accept the same + arguments. The only difference is the return value. In most cases I found + myself using these variants instead of the original versions that return a + list. * Code Examples Some very simple examples are given here. You can see many code examples in diff --git a/parsec.el b/parsec.el index 8ffb13d..2663960 100644 --- a/parsec.el +++ b/parsec.el @@ -200,15 +200,19 @@ ;; They all have a variant that returns a string by concatenating the ;; results in the list: -;; - `parsec-many-as-string' -;; - `parsec-many1-as-string' -;; - `parsec-many-till-as-string' -;; - `parsec-until-as-string' -;; - `parsec-collect-as-string' - -;; These variants accept the same arguments. The only difference is the -;; return value. In most cases I found myself using these variants -;; instead of the original versions that return a list. +;; - `parsec-many-as-string' or `parsec-many-s' +;; - `parsec-many1-as-string' or `parsec-many1-s' +;; - `parsec-many-till-as-string' or `parsec-many-till-s' +;; - `parsec-until-as-string' or `parsec-until-s' +;; - `parsec-collect-as-string' or `parsec-collect-s' +;; - `parsec-count-as-string' or `parsec-count-s' + +;; The `*-s' and `*-as-string' variants are the same, except the `*-s' +;; variants have a shorter name. Using these `*-s' functions are +;; recommended if you're using these variants more frequently. These +;; variants accept the same arguments. The only difference is the return +;; value. In most cases I found myself using these variants instead of +;; the original versions that return a list. ;; 3 Code Examples