Skip to content

Instantly share code, notes, and snippets.

View brunjlar's full-sized avatar

Lars Brünjes brunjlar

  • Input Output Hong Kong
  • Regensburg (Germany)
View GitHub Profile
@dino-
dino- / haskell-symbols.md
Last active March 20, 2024 05:38
Haskell symbols

Haskell symbols

When starting out with Haskell, I found it difficult to read a lot of the symbols. I made this document explaining the names of some symbols and how I read them.

:: "has type"

x :: Int

@MihailJP
MihailJP / gcd.fth
Created May 17, 2014 11:25
GCD and LCM of two numbers, implemented with Forth
\ This implements Euclidean algorithm in Forth
: gcd ( X Y )
2dup <= if swap ( Y X ) then
( X Y )
begin
tuck ( Y X Y )
mod ( Y Z )
dup ( Y Z Z )
0= until ( Y Z )
( Y 0 )