LoginSignup
2

More than 5 years have passed since last update.

Prolog (swi)でも愛が生まれた

Last updated at Posted at 2016-05-10

ひとりでふたつ投稿するのは野暮かと思ったけど、肝心のコードも間に変数噛ませる必要があって野暮ったいからいいでしょ(?)
もっといい例があれば是非。

元ネタ: http://qiita.com/dongri/items/041ff3e7dde6c99beeb0

:- char_code(, X), char_code(, Y), Z is X /\ Y, char_code(C, Z), writeln(C), halt.

こちらで ideone での結果が見られます: http://ideone.com/UL887Q

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2