From ac7659bb0160a5ab986e12f6dce2f83c665d869c Mon Sep 17 00:00:00 2001 From: "Wenzel P. P. Peppmeyer" Date: Sun, 19 Feb 2017 21:08:42 +0100 Subject: [PATCH] fix Any.list|push --- doc/Type/Any.pod6 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/Type/Any.pod6 b/doc/Type/Any.pod6 index 5f2f02e57..396a61688 100644 --- a/doc/Type/Any.pod6 +++ b/doc/Type/Any.pod6 @@ -82,6 +82,10 @@ C-L from it. =head2 method list +Defined as: + + method list(--> List:D) + Interprets the invocant as a list, and returns that L. say 42.list.^name; # OUTPUT: «List␤» @@ -89,6 +93,10 @@ Interprets the invocant as a list, and returns that L. =head2 method push +Defined as: + + method push(|values --> Positional:D) + The method push is defined for undefined invocants and allows for autovivifying undefined to an empty C, unless the undefined value implements C already. The argument provided will then be pushed