[latex3-commits] [latex3/latex3] fp-func: A simplification (ce9167255)

github at latex-project.org github at latex-project.org
Wed Oct 18 06:49:11 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : fp-func
Link       : https://github.com/latex3/latex3/commit/ce9167255490add8e0dea4bd9e6d090f233a2fde

>---------------------------------------------------------------

commit ce9167255490add8e0dea4bd9e6d090f233a2fde
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Oct 18 05:49:11 2023 +0100

    A simplification
    
    Thanks to @skillmon.


>---------------------------------------------------------------

ce9167255490add8e0dea4bd9e6d090f233a2fde
 l3kernel/l3fp-symbolic.dtx | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/l3kernel/l3fp-symbolic.dtx b/l3kernel/l3fp-symbolic.dtx
index 6b81d975e..847f3dda6 100644
--- a/l3kernel/l3fp-symbolic.dtx
+++ b/l3kernel/l3fp-symbolic.dtx
@@ -402,24 +402,28 @@
   }
 \cs_new:Npn \@@_symbolic_unary_to_tl:NNw #1#2 , #3 @
   {
-    \use:ee
-      { \@@_symbolic_cs_arg_to_fn:NN #1#2 }
-      { \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #3 } ) }
+    \use:e
+      {
+        \@@_symbolic_cs_arg_to_fn:NN #1#2
+        ( \@@_to_tl_dispatch:w #3 )
+      }
   }
 \cs_new:Npn \@@_symbolic_binary_to_tl:Nww #1, #2; #3; @
   {
-    \use:ee
-      { \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #2; } ) }
+    \use:e
       {
-        \use:ee
-          { \@@_types_cs_to_op:N #1 }
-          { \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #3; } ) }
+        ( \@@_to_tl_dispatch:w #2; )
+        \@@_types_cs_to_op:N #1
+        ( \@@_to_tl_dispatch:w #3; )
       }
   }
 \cs_new:Npn \@@_symbolic_function_to_tl:Nw #1, #2@
   {
-    \use:ee { \@@_types_cs_to_op:N #1 }
-      { \exp_last_unbraced:Nf ( { \@@_array_to_clist:n {#2} } ) }
+    \use:e
+      {
+        \@@_types_cs_to_op:N #1
+        ( \@@_array_to_clist:n {#2} )
+      }
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.