Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lamda
람다식이란?
함수형 프로그래밍 → 함수를 정의하고 이 함수를 데이터 처리부로 보내 처리하는 기법
자바는 함수형 프로그래밍을 위해 Java8 부터 람다식을 지원.
위를 람다식으로 표현
람다식 CODE
매개변수가 없는 람다식
() -> { 실행문; 실행문; } () -> 실행문리턴값 있는 람다식
메소드 참조
Stream
스트림이란?
컬렉션 및 배열에서 for문 쓰거나 Iterator 써서 순회했음.
❗이제?
편하다?
장점
❗병렬처리는 차차 보기로하자
필터링
요소를 걸러내는 중간 처리 기능
distinct()중복 제거요소의 중복을 제거
equals()가 true면 → 동일한 요소로 판단요소 정렬
compare(x,y)sorted()