Skip to content

Commit c33114e

Browse files
committed
Revert "Added spec for :vk subscript adverbial"
This reverts commit 451c4bb.
1 parent 451c4bb commit c33114e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

S02-bits.pod

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,23 +2450,20 @@ appropriate adverb to the subscript.
24502450
@array[0,1,2] :kv; # returns 0, 'A', 1, 'B'
24512451
@array[0,1,2] :k; # returns 0, 1
24522452
@array[0,1,2] :v; # returns 'A', 'B'
2453-
@array[0,1,2] :vk; # returns 'A', 0, 'B', 1
24542453

24552454
%hash = (:a<A>, :b<B>);
24562455
%hash<a b c>; # returns 'A', 'B', (Any)
24572456
%hash<a b c> :p; # returns a => 'A', b => 'B'
24582457
%hash<a b c> :kv; # returns 'a', 'A', 'b', 'B'
24592458
%hash<a b c> :k; # returns 'a', 'b'
24602459
%hash<a b c> :v; # returns 'A', 'B'
2461-
%hash<a b c> :vk; # returns 'A', 'a', 'B', 'b'
24622460

24632461
These adverbial forms all weed out non-existing entries if the
24642462
adverb is true; if not, they leave them in, just as an ordinary slice would.
24652463
So:
24662464

24672465
@array[0,1,2] :!p; # returns 0 => 'A', 1 => 'B', 2 => (Any)
24682466
%hash<a b c> :!kv; # returns 'a', 'A', 'b', 'B', 'c', (Any)
2469-
%hash<a b c> :!vk; # returns 'A', 'a', 'B', 'b', (Any), 'c'
24702467

24712468
Likewise,
24722469

@@ -2537,20 +2534,16 @@ These combinations are considered legal and mean the following:
25372534
:delete :!p delete, return pairs of all keys attempted
25382535
:delete :kv delete, return key/values of actually deleted keys
25392536
:delete :!kv delete, return key/values of all keys attempted
2540-
:delete :k delete, return actually deleted keys
2541-
:delete :!k delete, return all keys attempted to delete
25422537
:delete :v delete, return values of actually deleted keys
25432538
:delete :!v delete, return values of all keys attempted
2544-
:delete :vk delete, return value/keys of actually deleted keys
2545-
:delete :!vk delete, return value/keys of all keys attempted
2539+
:delete :k delete, return actually deleted keys
2540+
:delete :!k delete, return all keys attempted to delete
25462541
:delete :exists delete, return Bools indicating keys existed
25472542
:delete :!exists delete, return Bools indicating keys did not exist
25482543
:delete :exists :p delete, return pairs with key/True for key existed
25492544
:delete :exists :!p delete, return pairs with key/Bool whether key existed
25502545
:delete :exists :kv delete, return list with key,True for key existed
25512546
:delete :exists :!kv delete, return list with key,Bool whether key existed
2552-
:delete :exists :vk delete, return list with True,key for key existed
2553-
:delete :exists :!vk delete, return list with Bool,key whether key existed
25542547

25552548
An implementation is free to silently ignore any other combinations or
25562549
silently prefer one of the adverbs given above any other.

0 commit comments

Comments
 (0)