Skip to content

Commit 54d447c

Browse files
committed
Revised text on hyperoperators
With some minor errors fixed, but basically checking that it addresses, and thus closes, #944
1 parent fe116ef commit 54d447c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/Language/operators.pod6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ X<|«=»>
281281
=head1 X<<<Hyper Operators|hyper,<<;hyper,>>;hyper,«;hyper,»;>>>
282282
283283
Hyper Operators include C<«> and C<»>, with their ASCII variants C«<<»
284-
and C«>>». They apply a given operator enclosed by C<«> and C<»> to one or two
284+
and C«>>». They apply a given operator enclosed (or preceded or followed, in the case of unary operators) by C<«> and/or C<»> to one or two
285285
lists, returning the resulting list, with the pointy part of C<«> or C<»> aimed at the shorter list. Single elements are turned to a list, so they can be used too. If one of
286286
the lists is shorter than the other, the operator will cycle over the shorter
287287
list until all elements of the longer list are processed.
@@ -351,7 +351,8 @@ Hyper operators can take user defined operators as their operator argument.
351351
# we build a vector of fractions of $size and zip that with the fitting prefix
352352
for $size «[r/]« (2**60, 2**50, 2**40, 2**30, 2**20, 2**10)
353353
Z <EB PB TB GB MB KB> -> [\v,\suffix] {
354-
# starting with the biggest suffix, we take the first that is 0.5 of that suffix or bigger
354+
# starting with the biggest suffix,
355+
# we take the first that is 0.5 of that suffix or bigger
355356
return v ~ ' ' ~ suffix if v > 0.4
356357
}
357358
# this be smaller or equal then 0.4 KB

0 commit comments

Comments
 (0)