as_name: Coerce an object to a name or call.

Description Usage Arguments Examples

Description

These are a S3 generics with built-in methods for names, calls, formuals, and strings. The distinction between a name and a call is particularly important when coercing from a string. Coercing to a call will parse the string, coercing to a name will create a (potentially) non-syntactic name.

Usage

1
2
3

Arguments

x

An object to coerce

Examples

1
2
3
4
5
as_name("x + y")
as_call("x + y")

as_call(~ f)
as_name(~ f())

lazyeval documentation built on May 2, 2019, 2:11 a.m.