Add length function for strings

This commit is contained in:
madmaurice 2021-04-02 19:03:23 +02:00
parent f8d6ab4f8c
commit a9b9d5efa1

View file

@ -166,6 +166,12 @@ my %stdctx = (
'string-not-greaterp' => sub { my ($a, $b) = @_; return !(lc($a) gt lc($b)); },
'string-not-lessp' => sub { my ($a, $b) = @_; return !(lc($a) lt lc($b)); },
# string length
'length' => sub {
my ($a) = @_;
return length($a);
},
# Bitwise operations
'logand' => sub {
my $v = -1;