GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tinyield/sek-usage-lib: Sek library usage in Java of Kotlin Sequence

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
gradle/wrapper
gradle/wrapper
 
 
src/main/java/com/tinyield
src/main/java/com/tinyield
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 

Repository files navigation

sek-usage

Gradle project example of Sek library usage in Java for Kotlin Sequence.

git clone https://github.com/tinyield/sek-usage.git
cd sek-usage
gradlew run

Output:

505 by Arctic Monkeys
Mural by Lupe Fiasco

This demo runs the following code snippet:

Sek<Song> songs = Sek.of(
            new Song("505", "Alternative"),
            new Song("Amsterdam", "Alternative"),
            new Song("Mural", "Hip-Hop"));

Sek<Artist> artists = Sek.of(
            new Artist("Arctic Monkeys", "band"),
            new Artist("Nothing But Thieves", "band"),
            new Artist("Lupe Fiasco", "solo-artist"));

songs
    .filterNot(song -> song.getName().startsWith("A"))
    .map(Song::getName)
    .zip(artists.distinctBy(Artist::getKind).map(Artist::getName))
    .map(pair -> String.format("%s by %s", pair.getFirst(), pair.getSecond()))
    .forEach(System.out::println);

About

Sek library usage in Java of Kotlin Sequence

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.