REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 17-Aug-2010 Edit History |
Debug print a molded value and returns that same value.
Arguments:
value [any-type!]
See also:
The probe function will mold a value into reloadable source format and display it.
num: 1
probe [num + 2 "ABC"]
[num + 2 "ABC"]
Compare with the print function which will reduce the block:
print [num + 2 "ABC"]
3 ABC
The probe function also returns its argument value as its result, making it easy to insert into code for debugging purposes.
Examples:
n: probe 1 + 2
3
print n
3
print 2 * probe pi * probe sine 45 0.707106781186547 2.22144146907918 4.44288293815837
word: 'here if probe find [where here there] word [print "found"] [here there] found
See the print function for information about related functions.
TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |