Korean

Korean language support for Raku - Raku 한국어

Korean - 한국어 Raku Module

A Raku module that provides Korean language bindings for programming in Raku.

Installation

zef install Korean

Usage

use Korean;
# or
use 한국어;
# or  
use 한글;

# Constants
say 참;           # True
say 거짓;         # False
say 무();         # Nil
say 원주율;       # π (pi)

# Math operations
say 더하기(2, 3);        # 5 (add)
say 빼기(10, 3);         # 7 (subtract)
say 곱하기(4, 5);        # 20 (multiply)
say 나누기(20, 4);       # 5 (divide)
say 제곱(2, 3);          # 8 (power)

# String operations
say 길이("안녕하세요");    # 5 (length)
say 대문자("hello");      # HELLO (uppercase)
say 거꾸로("가나다라");    # 라다나가 (reverse)

# Array operations  
my @배열 = <사과 귤 포도>;
say 첫번째(@배열);        # 사과 (first)
say 마지막(@배열);        # 포도 (last)
say 합계([1, 2, 3, 4]);   # 10 (sum)

# Type checking
say 숫자인가(42);         # True (is-number)
say 문자열인가("text");   # True (is-string)
say 리스트인가(@배열);    # True (is-list)

# Control flow
만약 참 {
    말하기("이것은 참입니다");  # This is true
}

각각 @배열 -> $과일 {
    출력("$과일 ");            # Print each fruit
}

# Operators
say 5 더하기 3;            # 8
say 10 빼기 3;             # 7
say 4 곱하기 5;            # 20
say 20 나누기 4;           # 5
say 5 크다 3;              # True
say 2 작다 5;              # True
say 42 같다 42;            # True

Features

Constants and Nil

  • (cham) - True

  • 거짓 (geojit) - False

  • 무() (mu) - Nil (as function)

  • 널() (neol) - Nil (alternative)

  • (bin) - Empty string

  • 무한대 (muhande) - Infinity

  • 원주율 (wonjuyul) - Pi (π)

  • 자연상수 (jayeonsangsu) - Euler's number (e)

Math Functions

  • 더하기 (deohagi) - add

  • 빼기 (ppaegi) - subtract

  • 곱하기 (gobhagi) - multiply

  • 나누기 (nanugi) - divide

  • 나머지 (nameoji) - modulo

  • 제곱 (jegob) - power

  • 절댓값 (jeoldaetgabs) - absolute value

  • 반올림 (ban-ollim) - round

  • 내림 (naelim) - floor

  • 올림 (ollim) - ceiling

String Functions

  • 길이 (gil-i) - length

  • 대문자 (daemunja) - uppercase

  • 소문자 (somunja) - lowercase

  • 거꾸로 (geokkulo) - reverse

  • 포함 (poham) - contains

  • 시작 (sijag) - starts-with

  • (kkeut) - ends-with

Array Functions

  • 개수 (gaesu) - count elements

  • 첫번째 (cheosbeonjjae) - first element

  • 마지막 (majimag) - last element

  • 합계 (habgye) - sum

  • 최대 (choedae) - maximum

  • 최소 (choeso) - minimum

  • 평균 (pyeong-gyun) - average

  • (maeb) - map

  • 필터 (pilteo) - filter

Type Checking

  • 숫자인가 (susjain-ga) - is-number

  • 정수인가 (jeongsu-in-ga) - is-integer

  • 문자열인가 (munjalyeol-in-ga) - is-string

  • 리스트인가 (liseuteu-in-ga) - is-list

I/O Functions

  • 말하기 (malhagi) - say

  • 출력 (chullyeog) - print

  • 입력 (iblyeog) - input prompt

Operators

  • 더하기 (deohagi) - infix addition

  • 빼기 (ppaegi) - infix subtraction

  • 곱하기 (gobhagi) - infix multiplication

  • 나누기 (nanugi) - infix division

  • 같다 (gatda) - equals

  • 크다 (keuda) - greater than

  • 작다 (jagda) - less than

License

Artistic-2.0

Author

Danslav Slavenskoj

Korean v0.0.1

Korean language support for Raku - Raku 한국어

Authors

  • Danslav Slavenskoj

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Korean
  • 한국어
  • 한글

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.