Set objects have Associative methods:

  my $s = set 2, 4, 6;
  say $s.keys;   # (4 2 6)

But I don't see them in the list from .^methods:

  say $s.^methods;
  # (menu default pick minpairs Setty grabpairs SET-SELF raku
Method+{is-nodal}.new Real Baggy iterator keyof Method+{is-nodal}.new
Method+{is-nodal}.new Method+{is-nodal}.new Mixy of grab
Method+{is-nodal}.new ACCEPTS new elems Method+{is-nodal}.new Str
Method+{is-nodal}.new WHICH Bool RAW-HASH fmt new-from-pairs Numeric
total maxpairs Method+{is-nodal}.new Capture Method+{is-nodal}.new
Method+{is-nodal}.new Method+{is-nodal}.new Int gist
Method+{is-nodal}.new Method+{is-nodal}.new Method+{is-nodal}.new
Method+{is-nodal}.new Num Method+{is-nodal}.new Method+{is-nodal}.new
Method+{is-nodal}.new roll pickpairs STORE BUILDALL)

  say so $s.^methods.gist.grep(/<<keys>>/);     # False

I'm using the latest rakudo star release: v2020.10.

Has this been fixed in later versions of Raku?

Reply via email to