by t1m · 9y ago · 0 comments
One aspect of the language was that Unix regular expressions were a built-in type, and so were associate arrays. These two features worked together in a cool way:
x['hi there'] = 5
x['hello'] = 2
# regular expressions are enclosed in `backquotes`
x[`hell.`] == [2]
x[`h.*`] == [5, 2]No comments yet.