Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

identify programming language

Please identify this programming language:

*Main> [ ((a,b,c),(d,e)) | 
    a <- [1..7], 
    b <- [2..8], 
    c <- [3..9], 
    d <- [1..8], 
    e <- [2..9], 
    a < b, 
    b < c, 
    d < e, 
    List.intersect [d,e] [a,b,c] == [], 
    a+b+c == 23, 
    d+e == 10 ]

output:

[((6,8,9),(3,7))]

I found the code in this blog comment.

like image 708
Handcraftsman Avatar asked Dec 10 '22 13:12

Handcraftsman


2 Answers

Haskell, running in a GHCi session.

alt text

like image 80
kennytm Avatar answered Dec 25 '22 05:12

kennytm


Haskell. Definitely.

like image 23
Jared Updike Avatar answered Dec 25 '22 06:12

Jared Updike