Advanced - rubyunworks/prime GitHub Wiki

Advanced Prime

Input/Output

IO ...

Web

Prime has a standard library for GUI programming via web technologies.

  <p id="phone"></p>

Then in Prime

  dom #phone body "321-555-0000".

Functors

Functors in Prime, like those Prolog is teh term given to the static structure of rules. For example, in the fact a' loves b', loves is the functor. Now in Prolog functors are pretty easy get a hold of because they are only allowed to be single terms. Not so in Prime.

TODO: So how do we handle this in Prime?