1
0
Fork 0

Adding upstream version 1.0.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-18 13:52:48 +02:00
parent f0ce5b079b
commit b1c5a31457
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
136 changed files with 2310 additions and 0 deletions

35
testdata/reply/embedded_email_17.txt vendored Normal file
View file

@ -0,0 +1,35 @@
The intent was to return nil when the first value was nil.
That was the op's issue.
If one of the values was nil, she/he wanted nil.
Nil && anything_else will always return nil, and I will not evaluate the
second clause.
> >>>>>>>>
> It should be:
> 2.0 && 2.0 + 12.0
> <<<<<<<<<
>
> Ah! Yes, that works.
>
>
People are intent on not understanding, aren't they.
def nil_add_12 f
f && f + 12.0
end
Generalised to two parameters:
def nil_add a, b
a && b && a + b
end
The only quirk is the way they handle `false`.
This is not tested, but it may be possible to do this, too:
f&.+ b
Cheers