You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCS.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ depth: 2
13
13
14
14
## Overview
15
15
16
-
This documentation covers all the features of the [Coconut Programming Language](http://evhub.github.io/coconut/), and is intended as a reference/specification, not a tutorialized introduction. For a full introduction and tutorial of Coconut, see [the tutorial](./HELP.md).
16
+
This documentation covers all the features of the [Coconut Programming Language](http://evhub.github.io/coconut/), and is intended as a reference/specification, not a tutorialized introduction. For an introduction to and tutorial of Coconut, see [the tutorial](./HELP.md).
17
17
18
18
Coconut is a variant of [Python](https://www.python.org/) built for **simple, elegant, Pythonic functional programming**. Coconut syntax is a strict superset of the latest Python 3 syntax. Thus, users familiar with Python will already be familiar with most of Coconut.
19
19
@@ -407,7 +407,7 @@ Simply installing Coconut should add a `Coconut` kernel to your Jupyter/IPython
407
407
408
408
The Coconut kernel will always compile using the parameters: `--target sys --line-numbers --keep-lines --no-wrap-types`.
409
409
410
-
Coconut also provides the following api commands:
410
+
Coconut also provides the following commands:
411
411
412
412
-`coconut --jupyter notebook` will ensure that the Coconut kernel is available and launch a Jupyter/IPython notebook.
413
413
-`coconut --jupyter console` will launch a Jupyter/IPython console using the Coconut kernel.
@@ -517,11 +517,11 @@ f x n/a
517
517
+, - left
518
518
<<, >> left
519
519
& left
520
-
&: left
520
+
&: yes
521
521
^ left
522
522
| left
523
-
:: n/a (lazy)
524
-
.. n/a
523
+
:: yes (lazy)
524
+
.. yes
525
525
a `b` c, left (captures lambda)
526
526
all custom operators
527
527
?? left (short-circuits)
@@ -536,7 +536,7 @@ a `b` c, left (captures lambda)
536
536
not unary
537
537
and left (short-circuits)
538
538
or left (short-circuits)
539
-
x if c else y, ternary left (short-circuits)
539
+
x if c else y, ternary (short-circuits)
540
540
if c then x else y
541
541
=> right
542
542
====================== ==========================
@@ -3851,7 +3851,7 @@ for x in input_data:
3851
3851
3852
3852
Coconut provides a modified version of `itertools.count` that supports `in`, normal slicing, optimized iterator slicing, the standard `count` and `index` sequence methods, `repr`, and `start`/`step` attributes as a built-in under the name `count`. If the _step_ parameter is set to `None`, `count` will behave like `itertools.repeat` instead.
3853
3853
3854
-
Since `count` supports slicing, `count()` can be used as a version of `range` that can in some cases be more readable. In particular, it is easy to accidentally write `range(10, 2)` when you meant `range(0, 10, 2)`, but it is hard to accidentally write `count()[10:2]` when you mean `count()[:10:2]`.
3854
+
Since `count` supports slicing, `count()[...]` can be used as a version of `range` that can in some cases be more readable. In particular, it is easy to accidentally write `range(10, 2)` when you meant `range(0, 10, 2)`, but it is hard to accidentally write `count()[10:2]` when you mean `count()[:10:2]`.
0 commit comments