Can you do Logic Programming in Scala?

Posted by Alex R on Stack Overflow See other posts from Stack Overflow or by Alex R
Published on 2010-04-17T19:32:54Z Indexed on 2010/04/17 19:43 UTC
Read the original article Hit count: 373

I read somewhere that Pattern Matching like that supported by the match/case feature in Scala was actually borrowed from Logic languages like Prolog.

Can you use Scala to elegantly solve problems like the Connected Graph problem? e.g. https://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_15.html

© Stack Overflow or respective owner

Related posts about scala

Related posts about prolog