Kotlin printer: streams as collection operations
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
調査の方向性
Start in the Kotlin printer code that translates Java stream expression chains, and run the existing printer tests to observe the current output. Implement the stage, terminal, laziness, and unsupported-operation mappings listed in the issue. Done means supported Collection.stream() chains become Kotlin collection operations, while unsupported cases such as findFirst, count, limit, and flatMap remain streams.
索引モデルが issue の本文から書いたものです。
説明
Split off from #231. Java translated to Kotlin keeps its streams: names.stream().filter(…).map(…).collect(Collectors.toList()) (.stream() 40 / 77 / 30 times in the langchain4j / fernflower / guava output). Kotlin's collections have these operations themselves.
First pass, a chain from Collection.stream():
- stages
filter,map,distinct,sorted()(Comparable elements),sorted(c)→sortedWith(c);filter(Objects::nonNull)→filterNotNull() - terminals
collect(toList())/toList()→ nothing,toList()ortoMutableList()as the position takes it;collect(toSet())→toSet()/toMutableSet();collect(joining(…))→joinToString(…);anyMatch/allMatch/noneMatch→any/all/none;forEach - where Java's laziness can show (a short-circuiting terminal or
forEachafter a stage):asSequence()
Anything else stays a stream: findFirst (that is the Optional item of #231), count, mapToInt, limit, flatMap, custom collectors, Arrays.stream, Stream.of.
🤖 Generated with Claude Code
- 主要言語
- Java
- スター
- 1
- フォーク
- 1
- 平均マージ
- 48分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CodeLaser/maddi のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
Javadoc warnings are the only noise on an otherwise clean CI run再び着手できるかも @jayeshamundkar06-bit が 27 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbuild/ci good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
CodeLaser/maddi の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
federicoiosue/Omni-Notes#1044 ·
-
Bug
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Terraform releases proxy leaves a temp folder behind on every cache refresh対応中かも @dhananjay6561 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
terrakube-io/terrakube#4069 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
find-sec-bugs/find-sec-bugs#789 ·