Bolts 1.0 functional programming library for java released

Bolts is a functional programming library for Java, it also contains easier to use collections. Bolts addresses JDK collections weakness.

Unlike related projects, bolts collection interfaces extend JDK collections, and collection operations are collection methods.


yields list of integers 1, 2, 4.

CollectionsF.list(0, 1, -3, 2, 0).filter(IntegerF.naturalComparator().gtF(0))
yields 1, 2

CollectionsF.list("a,b", "c", "d,e,f").flatMap(StringF.splitF(","))
produces list of letters: "a", "b", "c", "d", "e", "f"

Bolts contains extended collection interfaces, strongly typed function objects as well as common funcitonal abstractions — Option, Tuple*, Either<A, B>.

Please visit bolts home page for the source code, documentation and more examples.


이 블로그의 인기 게시물

Android Service에서 AlertDialog 띄우기

MongoDB, 설치와 간단 사용법

Android Thread 내에서 UI 핸들링