aboutsummaryrefslogtreecommitdiff
path: root/r/types.r
diff options
context:
space:
mode:
Diffstat (limited to 'r/types.r')
-rw-r--r--r/types.r2
1 files changed, 2 insertions, 0 deletions
diff --git a/r/types.r b/r/types.r
index 2816143..a3eebcf 100644
--- a/r/types.r
+++ b/r/types.r
@@ -66,6 +66,8 @@ get_error <- function(e) {
# Scalars
nil <- structure("malnil", class="nil")
.nil_q <- function(obj) "nil" == class(obj)
+new.symbol <- function(name) structure(name, class="Symbol")
+.symbol_q <- function(obj) "Symbol" == class(obj)
# Functions