Revolucent icon

Untitled

Revolucent | PRO | 02/24/16 02:05:47 PM UTC | 0 ⭐ | 13917 👁️ | Never ⏰ | []
REBOL |

280 B

|

None

|

0 👍

/

0 👎

; Homoiconicity in REBOL
 
; This is a normal foreach statement:
foreach x [1 2 3] [
    print x
]
 
; Here's a homoiconic one:
forbody: [print x] ; Here we assign [print x] to the variable forbody
foreach x [1 2 3] forbody ; This has the same effect as the normal foreach above

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎