Giter Club home page Giter Club logo

Comments (1)

evan-moon avatar evan-moon commented on August 26, 2024 1

까먹기 전에 미리 메모해두자면...

이 함수는 아래와 같이 여러 단계의 관심사를 가진 함수들의 합성으로 정의됩니다.

  1. 인자로 초성, 중성, 종성을 받아 하나의 한글 문자로 합쳐주는 함수
combineHangulCharacter('ㄱ', 'ㅏ', 'ㅇ') // 강
combineHangulCharacter('ㄱ', 'ㅗ') // 고
  1. 두 개의 한글 문자열을 받아 하나의 한글 문자열로 합쳐주는 함수. 이 함수는 첫 번째 인자의 마지막 한글 문자의 성질에 따라 두 번째 인자로 받은 한글 문자를 첫 문자와 어떻게 합칠 것인지, 단순 Join할 것인지를 결정합니다. (한글 비즈니스 로직 * combineHangulCharacter)
binaryAssembleHangul('고양이 좋ㅇ', 'ㅏ') // 고양이 좋아
  1. 인자로 자유로운 한글 문자열을 원소로 가진 배열을 받아 하나의 한글 문자열로 합쳐주는 함수 (disassembleHangul * reduce * binaryAssembleHangul)
assembleHangul(['저는', '고양ㅇ', 'ㅣ', '를', ' ', '좋아', 'ㅎ', 'ㅏ', 'ㅂ', '니다']) // 저는 고양이를 좋아합니다

from es-hangul.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.