Shafaq-Siddiqi commented on a change in pull request #1139:
URL: https://github.com/apache/systemds/pull/1139#discussion_r551333661



##########
File path: src/main/java/org/apache/sysds/runtime/matrix/data/FrameBlock.java
##########
@@ -2147,8 +2166,45 @@ public static FrameMapFunction 
getCompiledFunction(String lambdaExpr) {
                }
        }
 
+       public static FrameMapDistFunction getCompiledFunction2Args(String 
lambdaExpr) {
+               // split lambda expression
+               String[] parts = lambdaExpr.split("->");
+               parts[0] = parts[0].replace("(", "");

Review comment:
       these tow lines could be replaced with the following 
   parts[0] = parts[0].replaceAll("[()]", "");




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to