Skip to content

implement - #106

Open
ddryzhov wants to merge 1 commit into
mate-academy:mainfrom
ddryzhov:divisible-numbers
Open

implement#106
ddryzhov wants to merge 1 commit into
mate-academy:mainfrom
ddryzhov:divisible-numbers

Conversation

@ddryzhov

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 20:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Implements makeAbbr to return an abbreviation derived from the first letter of each word in the input string.

Changes:

  • Return early for blank input.
  • Split the source string into words and join their first characters uppercased into an abbreviation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +6 to +8
return source
.split(" ")
.filter { it.isNotEmpty() }.joinToString("") { it.first().uppercase() }

return source
.split(" ")
.filter { it.isNotEmpty() }.joinToString("") { it.first().uppercase() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants