in process …


Something bad happened. You should try to fix …


The action is completed.

Like functional languages, X10 supports functions as first-class objects in the

Yes. You can use any Java UI framework such as JavaFx, Swing or other. In addition there are Kotlin specific frameworks such as .There are already available for Kotlin, including which is by Kotlin team members Dmitry Jemerov and Svetlana Isakova, targeted at Android developers.

It doesn’t construct an in-memory list and exhaust all the input iterators returning instead tuples are constructed and returned only if they’re requested. (The technical term for this behaviour is .) is the opposite of , returning all elements for which the predicate returns false:

: A hands-on introduction to frameworks and Brought to you in partnership with .

This reduces the scope of possible mistakes, but it doesn’t eliminate them: you can no longer accidentally type -98 instead of -99, but you can still mess up the name of variable. The next step is to remove this possible source of error by combining two functions. One function, , knows how to fix a single vector the other, , knows how to do something to each column in a data frame.

To prevent bugs and to make more flexible code, adopt the “do not repeat yourself”, or DRY, principle. Popularised by the , Dave Thomas and Andy Hunt, this principle states: “every piece of knowledge must have a single, unambiguous, authoritative representation within a system”. FP tools are valuable because they provide tools to reduce duplication.

Related links


kotlin poible single principle tools