Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tail): add tail function #143

Merged
merged 9 commits into from
Jul 10, 2024
Merged

feat(tail): add tail function #143

merged 9 commits into from
Jul 10, 2024

Conversation

hautest
Copy link
Contributor

@hautest hautest commented Jul 9, 2024

#95

This pull request implements a tail function that returns a new array with all elements except for the first. The function takes an array as a parameter and returns a new array containing all elements except for the first one. If the input array is empty or has only one element, the function returns an empty array.

스크린샷 2024-07-09 오후 8 40 09

@hautest hautest requested a review from raon0211 as a code owner July 9, 2024 12:16
Copy link

vercel bot commented Jul 9, 2024

@hautest is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (6f60b78) to head (1d5f441).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #143   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           68        69    +1     
  Lines          384       392    +8     
  Branches        49        50    +1     
=========================================
+ Hits           384       392    +8     

Comment on lines +3 to +5
첫 번째 요소를 제외한 모든 요소가 포함된 새 배열을 반환합니다.

이 함수는 배열을 입력받아 첫 번째 요소를 제외한 모든 요소를 포함하는 새 배열을 반환합니다. 입력 배열이 비어 있거나 요소가 하나만 있는 경우 빈 배열을 반환합니다.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
첫 번째 요소를 제외한 모든 요소가 포함된 새 배열을 반환합니다.
이 함수는 배열을 입력받아 첫 번째 요소를 제외한 모든 요소를 포함하는 새 배열을 반환합니다. 입력 배열이 비어 있거나 요소가 하나만 있는 경우 빈 배열을 반환합니다.
배열에서 첫 번째 요소를 제외한 나머지 요소가 포함된 새 배열을 반환해요.
입력 배열이 비어 있거나, 요소가 하나만 있는 경우에는, 빈 배열을 반환해요.

Copy link
Collaborator

@raon0211 raon0211 left a comment

Choose a reason for hiding this comment

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

This looks great. Thanks for your great contribution!

@raon0211 raon0211 merged commit 27b6c8f into toss:main Jul 10, 2024
5 of 7 checks passed
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.

3 participants