This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Methods showing how to transform for/yield based expression into pure map/flatMap/withFilter expression. | |
* The idea is - this transformations is possible using simple substitutions. | |
* | |
* Exapmples based on the coursera "Functional Program Design in Scala" | |
* Lecture 1.2 "Translation of For" | |
* https://www.coursera.org/learn/progfun2/lecture/zJcCG/lecture-1-2-translation-of-for | |
* | |
* @author Piotr Reszke | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Modifier; | |
strictfp interface StrictInterface { | |
void someInterfaceMethod(); | |
default void someInterfaceDefaultMethod() {} | |
class InnerTest { | |
public static void innerMethod() {} |