Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.lisp
Re: Do people dislike parentheses
William James
12/30/2015 6:46:00 AM
Raffael Cavallaro wrote:
> ? (loop with favorite-colors = (list 'green 'yellow)
> with favorite-things =
> (list 'whiskers-on-kittens 'warm-woolen-mittens)
> with all-favorites = (append favorite-colors favorite-things)
> for element in all-favorites do
> (format t "~a is one of my favorites.~%" element))
> GREEN is one of my favorites.
> YELLOW is one of my favorites.
> WHISKERS-ON-KITTENS is one of my favorites.
> WARM-WOOLEN-MITTENS is one of my favorites.
MatzLisp (Ruby):
fav_colors = [:blue,:pink]
fav_things = ['epoxy putty','duct tape']
(fav_colors + fav_things).each{|fav|
puts "#{fav} is one of my favorites."}
blue is one of my favorites.
pink is one of my favorites.
epoxy putty is one of my favorites.
duct tape is one of my favorites.
--
Amazon bans book. After nearly a month on the site, all traces of the book and
its 80 reviews have been removed.
http://jamesfetzer.blogspot.com/2015/11/debunking-sandy-hook-debunk...
https://www.youtube.com/watch?v=E...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Do people dislike parentheses
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password