Skip to content

PartialFunction 의 필요성을 잘 모르겠습니다. #3

@rkdgusrnrlrl

Description

@rkdgusrnrlrl

솔직히 PartialFunction 는 예로 인자 타입이 Int 여도 모든 Int 값에 대한 리턴을 구현 하지 않아 부분 함수 라고 불리는 것으로 알고 있습니다.
그런데 왜 필요할지 잘 모르겠습니다. scala 에서 중요한 것중 하나인것 같은데, 예시를 들어서 설명해주시면 이해가 더 잘 될 것 같습니다. ^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions