Open3

HaskellとLispを良い所取りした関数型言語Pravda

梶塚太智梶塚太智

文法の比較

Lisp (Racket):

(define (x2 n) (* n 2))
(x2 5)

Haskell:

x2 :: Int -> Int
x2 n = n * 2
x2 5

Pravda:

x2 n = (* n 2);
x2 5