Welcome to my Code Snippets

MyCodeSnippets.Space

as-pair

ReAdABLE Source (What is the ReAdABLE Human Format?)

http://mycodesnippets.space/redlang/as-pair.red

Demo

Type in red-lang console:

do read http://mycodesnippets.space/redlang/src/as-pair.red

Code Snippet


width: 100
height: 250
view compose/deep [
    title "as-pair demo"
    ;instead of
    ;base (make pair! reduce [width height])
    ;it's shorter to write
    base (as-pair width height) ; as-pair accepts 2 parameters, it does not accept a block
]