Skip to content

Commit

Permalink
perldoc for removeValue
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev committed Jan 8, 2025
1 parent f564f53 commit ecbc892
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/LaTeXML/Core/State.pm
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ sub shiftValue {
assign_internal($self, 'value', $key, [], 'global') unless $$vtable{$key}[0];
return shift(@{ $$vtable{$key}[0] }); }

# inline LookupValue after which globally assign an empty Tokens() to undo
sub removeValue {
my ($self, $key) = @_;
if (my $vvec = $$self{value}{$key}) {
Expand Down Expand Up @@ -920,6 +919,11 @@ onto the last binding of C<$name>.
Returns whether the value C<$name> is bound. If C<$frame> is given, check
whether it is bound in the C<$frame>-th frame, with 0 being the top frame.
=item C<< $value = $STATE->removeValue($name); >>
If a value for C<$name> is assigned, remove its binding from the closest local frame,
returning the removed value.
=back
=head2 Category Codes
Expand Down

0 comments on commit ecbc892

Please sign in to comment.