Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

ABC

Name: Anonymous 2012-03-26 22:03

Why is this FIOC syntax so awesome? Time to create a little interpreter for a language like this.


HOW TO RETURN words document:
   PUT {} IN collection
   FOR line IN document:
      FOR word IN split line:
         IF word not.in collection:
            INSERT word IN collection
   RETURN collection

Name: Anonymous 2012-03-26 22:05


HOW TO RETURN words document:
PUT {} IN collection
FOR line IN document:
FOR word IN split line:
IF word not.in collection:
INSERT word IN collection
RETURN collection

where's your FIOC now?!?

Name: Anonymous 2012-03-26 22:10


               HOW TO RETURN words document:
            PUT {} IN collection
            FOR line IN document:
         FOR word IN split line:
      IF word not.in collection:
   INSERT word IN collection
RETURN collection

Name: Anonymous 2012-03-26 22:20

N Queens:

HOW TO QUEENS n:
    DISPLAY n filled {}

HOW TO DISPLAY board:
    IF board = {}:
        WRITE "No solution" /
    FOR p IN board:
        WRITE "# "^^(p-1), "O "
        WRITE "# "^^(#board - p) /

HOW TO RETURN n filled board:
    IF #board = n: RETURN board
    FOR p IN {1..n}:
        IF safe:
            PUT n filled board' IN new
        IF new <> {}: RETURN new
    RETURN {}

safe: REPORT col AND left AND right
col: REPORT p not.in board
left: REPORT NO r IN keys board HAS r+board[r] = #board+1+p
right: REPORT NO r IN keys board HAS r-board[r] = #board+1-p
board':
    PUT p IN board[#board+1]
    RETURN board

So elegant!

Name: Anonymous 2012-03-27 0:28

the human race has nothing better to do than fight
if we actually worked together as one planet we could get shit done and everybody would be alot happier
but then again we wouldn't be happy since we aren't fighting so i don't give a damn

Name: Anonymous 2012-03-27 0:36

>>5
Fight the Jews - reclaim the Homeland!

Name: Anonymous 2012-03-27 0:38

>>5
if we actually worked together as one planet we could get shit done and everybody would be alot happier
Let's work together to exterminate the Jewish vermins worldwide!

Name: Anonymous 2012-03-27 1:11

>>6-7
fuck off and die, faggots

Name: Anonymous 2012-03-27 1:15

Name: Anonymous 2012-03-27 1:23

>>5-9
You guys make /prog/ complete shit.

Name: Anonymous 2012-03-27 1:41

>>10
How about you go to some http://dis.4chan.il/prog/ already?

Name: Anonymous 2012-03-27 3:09

>>11
That would actually be http://dis.4chan.org.il/prog

Don't change these.
Name: Email:
Entire Thread Thread List