We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa9a78f commit dffd8c5Copy full SHA for dffd8c5
lib/elixir/lib/kernel.ex
@@ -2665,6 +2665,20 @@ defmodule Kernel do
2665
2666
Enum.map(List.flatten([1,[2],3]), &1 * 2)
2667
2668
+ Please note that due to theoperator precendence you can't use
2669
+ the following expression:
2670
+
2671
+ String.graphemes "Hello" /> Enum.reverse
2672
2673
+ as it is impossible to figure out whether /> is being applied
2674
+ to "Hello" or String.graphemes/1. In the above case,
2675
+ /> will be applied to "Hello", which will result in an error
2676
+ as Enum.Iterator protocol is not defined for binaries.
2677
2678
+ Therefore, the syntax that should be used is:
2679
2680
+ String.graphemes("Hello") /> Enum.reverse
2681
2682
"""
2683
defmacro left /> right do
2684
pipeline_op(left, right)
0 commit comments