Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
%h<> should return everything in the hash, like @A[] returns everythi…
…ng in the array.
  • Loading branch information
jnthn committed Apr 9, 2009
1 parent 4cc08e8 commit b512bdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/Associative.pir
Expand Up @@ -57,11 +57,11 @@ Returns a list element or slice.
.param pmc options :slurpy :named
.local pmc result, type
type = find_lex 'T'
args.'!flatten'()
if args goto do_index
## return complete invocant as a list
.tailcall self.'list'()
## return complete set of values as a list
.tailcall self.'values'()
do_index:
args.'!flatten'()
$I0 = args.'elems'()
if $I0 != 1 goto slice
$S0 = args[0]
Expand Down

0 comments on commit b512bdc

Please sign in to comment.