Simplify a few pascaligo functions in string reference page

This commit is contained in:
John David Pressman 2020-02-07 14:03:57 -08:00
parent 4c45eb9fb3
commit 02c59db8b8

View File

@ -39,8 +39,7 @@ the string "tata" given to the function below would return "at".
<!--DOCUSAURUS_CODE_TABS--> <!--DOCUSAURUS_CODE_TABS-->
<!--PascaLIGO--> <!--PascaLIGO-->
```pascaligo ```pascaligo
function slice_op (const s : string) : string is function slice_op (const s : string) : string is string_slice(1n , 2n , s)
begin skip end with string_slice(1n , 2n , s)
``` ```
<!--CameLIGO--> <!--CameLIGO-->
```cameligo ```cameligo
@ -64,8 +63,7 @@ Concatenate two strings and return the result.
<!--PascaLIGO--> <!--PascaLIGO-->
```pascaligo ```pascaligo
function concat_op (const s : string) : string is function concat_op (const s : string) : string is s ^ "toto"
begin skip end with string_concat(s , "toto")
``` ```
<!--CameLIGO--> <!--CameLIGO-->