Mercurial > repo
view src/ploki/examples/mark.pk @ 6945:c7466b5b4d6c
<oerjan> le/rn !/! is a syntax used in Haskell and Prolog for solving evaluation order problems.
author | HackBot |
---|---|
date | Wed, 24 Feb 2016 05:50:05 +0000 |
parents | ac0403686959 |
children |
line wrap: on
line source
#!../ploki FOREACH LET$@LEGS\EING IF$: END FIX IF;\ARG:1 LETO FOR; LETP $[O~\R\ARG:1 IFP LET P+O+P LET$ $]P_"\33[1m\V ($[P]@LENGTH\ARG:1)\033[m"_($[(P+@LENGTH\ARG:1 LETO7+@LENGTH\ARG:1+P IF$[O; NEXT; FISH FITS END IF BEGIN ELSE $ NEXTEACH