Skip to content

Commit 3085d7c

Browse files
committed
doc Any.min|max|minmax
1 parent bdf8ca8 commit 3085d7c

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

doc/Type/Any.pod6

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,23 +395,33 @@ Coerce the invocant first to a C<List> and then to a L<Supply|/type/Supply>.
395395
396396
Defined As:
397397
398-
method min(--> TODO)
398+
multi method min(--> Any:D)
399+
multi method min(&by --> Any:D)
399400
400-
TODO
401+
Coerces to Iterable and returns the numerically smallest element. If a
402+
C<Callable> is provided it is called with each element and its smallest return
403+
values is returned.
401404
402405
=head2 method max
403406
404407
Defined As:
405408
406-
method max(--> TODO)
409+
multi method max(--> Any:D)
410+
multi method min(&by --> Any:D)
407411
408-
TODO
412+
Coerces to Iterable and returns the numerically biggest element. If a
413+
C<Callable> is provided it is called with each element and its biggest return
414+
values is returned.
409415
410416
=head2 method minmax
411417
412418
Defined As:
413419
414-
method minmax(--> TODO)
420+
multi method minmax(--> List:D)
421+
multi method minmax(&by --> List:D)
422+
423+
Returns a list containing the smallest and the biggest element. If a
424+
C<Callable> is provided each element is filtered and then numerically compared.
415425
416426
TODO
417427

0 commit comments

Comments
 (0)