README

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.