I was looking at the source of List.map in Functional Java and saw it was using some class called Buffer
, but couldn't find the class anywhere, then I looked at the imports and realized it was an inner class. But the import line looked funny:
import static fj.data.List.Buffer.*;
What does it do? Why is it importing from itself?