3 ms·
>> It really should be a few lines of code to add an “unless(X) {}” statement to “if(!X) ()” to... Or even one line :) Factor... : unless ( ? quot -- res )
by draegtun 3y ago
>> It really should be a few lines of code to add an “unless(X) {}” statement to “if(!X) ()” to...
Or even one line :)
Factor...
: unless ( ? quot -- res ) swap [ drop ] [ call ] if ; inline
Rebol/Red...
unless: func [expr block] [either expr [] block]