Function composition of methods, functions, and partially applied functions in Scala

后端 未结 2 1023
甜味超标
甜味超标 2021-02-12 23:57

Somewhat similar to Stack Overflow question Compose and andThen methods, I\'ve been working through Twitter\'s Scala School tutorial and quickly ran into the same probl

2条回答
  •  攒了一身酷
    2021-02-13 00:12

    You can use simply 'a compose b'.

    scala> val c = a compose b
    c: String => java.lang.String = 
    

提交回复
热议问题