Nu Scrapbook
translation from Common Lisp to Nu
Nu natural language dates
prototype - based Nu
objective C type encodings for Nu signatures
—-
Nu identifiers can contain almost any Unicode character, including curly apostrophes (but not straight apostrophes) and non-breaking spaces. Use shift-option-] for curly apostrophy (') and option-space for non-breaking space (').
—-
(NSThread sleepForTimeInterval: 3) # sleeps for 3 seconds
—-
(system "ls")
… or, to get the returned result:
(set result (NSString stringWithShellCommand:"ls"))
See also NSString stringWithShellCommand:standardInput:
—-
To get arguments to a Nu script:
#!/usr/bin/env nush
(set ARGV ((
See also NSString stringWithShellCommand:standardInput:
—-
To get arguments to a Nu script:
#!/usr/bin/env nush
(set ARGV ((N S Process Info process Info) arguments))
(set first-argument (ARGV 2))

—-
enumerable methods are at >
—-
To build things on a PPC Mac, add
(set @arch '("ppc"))
to the Nukefile, and remove the equivalent
(set first-argument (ARGV 2))

—-
enumerable methods are at >
—-
To build things on a PPC Mac, add
(set @arch '("ppc"))
to the Nukefile, and remove the equivalent

—-
enumerable methods are at >
—-
To build things on a PPC Mac, add
(set @arch '("ppc"))
to the Nukefile, and remove the equivalent
to the Nukefile, and remove the equivalent x 86 statement.