An Brief Introduction to LISP - Pt 2, Functions

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,114
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 5, 2009

This multi-part series introduces you to Common LISP, by working toward the goal of building a simple web server in LISP

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • Thank you for these tutorials.

    I have understood more in the last 30 minutes, that I have in two months with the professor who is teaching our Lisp course right now!

    Please make more Lisp tutorials!!!

  • Lisp symbols can start with a number, so "1-" is a perfectly cromulent function name. It's in GCL too, just tested it. I'm relatively new to Lisp so I'm not sure how widespread this is as an idiom for "decrement".

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • Second video instead of (1 - n ) can't we use (- 1 n) ?

  • It seems that the debugging of LISP errors is a bit trickier than with other programming languages because it's easy to get lost in parenthesis... The part where he messes up is the only kind of experience I have with lisp. :-( However he recovers about a million times faster than I do because I still havent recovered... oh dear.

  • awesome man!

  • Want you know that I have learnt more about Lisp from just watching the first two tutorials you have here, than I have learnt from my professor in the past 2 months!

    Thank you, and please upload more!

  • Oh, BTW 1+ works as an INC in GCL too, but they both only work with one argument.

  • (1- n) is valid under clisp 2.31. Tested and confirmed.

  • Good Job... nice fail

  • Look at this as (foobar n) where foobar is "1-" which is a function that returns a value that is one less than the argument. If you put a space between "1" and "-", like so (1 - n) you would be wrong because "1-" is the name of the function. Hope that makes sense to you!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more