Skip to content

Instantly share code, notes, and snippets.

View rico345100's full-sized avatar
๐Ÿ’ญ
I may be slow to respond.

.modernator rico345100

๐Ÿ’ญ
I may be slow to respond.
View GitHub Profile

Motivation

  • expression-oriented programming one of the great advances of FP
  • expressions plug together like legos, making more malleable programming experience in-the-small

Examples

Write in an expression-oriented style, scoping variables as locally as possible:

@xnuk
xnuk / hyeong.md
Last active July 18, 2025 01:13
๋‚œํ•ดํ•œ ํ˜€์—‰.... ์–ธ์–ด

๋‚œํ•ดํ•œ ํ˜€์—‰... ์–ธ์–ด v0.4.5

  • โ€ฆ(U+2026), โ‹ฏ(U+22EF), โ‹ฎ(U+22EE)๋Š” ๋ชจ๋‘ .(U+002E)๊ฐ€ 3๋ฒˆ ์—ฐ์†์œผ๋กœ ๋‚˜์—ด๋œ ๊ฒƒ๊ณผ ๊ฐ™์€ ๊ฒƒ์œผ๋กœ ๋ด…๋‹ˆ๋‹ค.
  • "ํ•œ๊ธ€ ์Œ์ ˆ ๋ฌธ์ž"๋Š” ๊ฐ€(U+AC00) ์ด์ƒ ํžฃ(U+D7A3) ์ดํ•˜์˜ ์œ ๋‹ˆ์ฝ”๋“œ ๋ฌธ์ž๋“ค์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

์Šคํƒ

  • ์Šคํƒ์˜ ๋ชจ๋“  ์›์†Œ๋Š” ์œ ๋ฆฌ์ˆ˜ ๋˜๋Š” NaN์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ถ„๋ชจ๊ฐ€ 1์ธ ์œ ๋ฆฌ์ˆ˜๋ฅผ ํŽธ์˜์ƒ ์ •์ˆ˜๋ผ๊ณ  ์นญํ•ฉ๋‹ˆ๋‹ค.
  • NaN์€ ํŠน์ˆ˜ํ•œ ์ˆซ์ž์ฒ˜๋Ÿผ ์ทจ๊ธ‰๋ฉ๋‹ˆ๋‹ค. ์–ด๋– ํ•œ ์—ฐ์‚ฐ์„ ํ•˜๋”๋ผ๋„ ๊ทธ ์—ฐ์‚ฐ์— NaN์ด ์žˆ์„ ๊ฒฝ์šฐ ๊ทธ ์—ฐ์‚ฐ์˜ ๊ฐ’์€ NaN์ด ๋ฉ๋‹ˆ๋‹ค.