Fight the Future

Java言語とJVM、そしてJavaエコシステム全般にまつわること

プレゼン、ボランティアコーチします!

勉強会でスピーカーをやりたいけど、プレゼンが初めて、苦手という方に無償でコーチします!資料レビューや録画リハへアドバイスします。Twitter@jyukutyoまでメンションでもDMでも。

私はデブサミやJJUG CCCなど200人規模で経験ありです。海外も短いながら経験あり。デブサミ2017では公募スピーカー1位でした!

Introduction to Javaslang

I translated this article into Japanese in InfoQ.

www.infoq.com

I haven't known Javaslang library for now.

What is Javaslang?

Javaslang's website is below:

http://www.javaslang.io/javaslang-docs/

Javaslang brings functional programming to Java.

This library is inspired by Scala. It mainly focuses on Collection library.

How to use?

It needs Java 8 and is available in Maven Central repository.

I try to use Javaslang version 2.0.5.

Differ from Java 8, Javaslang has its own List and Stream interface.

Number sum = List.of(1, 2, 3).sum();
System.out.println(sum); // 6

And it has Option which correspond to Java 8's Optional, Tuple, Pattern Matching and so on.

For more infomation, visit Javaslang website.