Skip to content

Commit

Permalink
hyper operators depend on nodality (dmaestro++)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Jan 14, 2017
1 parent 445dc78 commit b4b68d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/Language/operators.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ Hyper operators can take user defined operators as its operator argument.
# OUTPUT: «10 EB 4 EB 2 PB 5 PB 0.5 PB 4 TB 300 GB 4.5 GB 50 MB 200 MB 9 KB 0.6 MB»
Hyper operators do not descend into child lists. You can chain hyper operators
to destructure a List of Lists.
If hyperoperators decend into child lists depends on the
L<nodality|/language/typesystem#trait_is_nodal> of the inner operator of a
chain. For the hyper method call operator (».) the nodality of the to be called
method is significiant.
my $neighbors = ((-1, 0), (0, -1), (0, 1), (1, 0));
my $p = (2, 3);
Expand Down

0 comments on commit b4b68d8

Please sign in to comment.