Author Topic: Closed: Test yourself (for fun). Round 3. The winner is NICK_VNV  (Read 1645 times)

0 Members and 1 Guest are viewing this topic.

divtiply

  • Guest
Closed: Test yourself (for fun). Round 3. The winner is NICK_VNV
« on: December 23, 2014, 03:20:30 PM »
Recognize the name of function that may be defined as

Code: [Select]
(defun f (a b c)
  (cond ((null c) nil)
        ((equal (car c) b) (cons a (f a b (cdr c))))
        (t (cons (car c) (f a b (cdr c))))))

(This function is exists in current AutoCAD's Lisp)
« Last Edit: December 23, 2014, 03:56:08 PM by divtiply »

NICK_VNV

  • Newt
  • Posts: 63
Re: Test yourself (for fun). Round 3.
« Reply #1 on: December 23, 2014, 03:53:22 PM »
subst ?
Sorry for my English...

divtiply

  • Guest
Re: Test yourself (for fun). Round 3.
« Reply #2 on: December 23, 2014, 03:55:45 PM »

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Closed: Test yourself (for fun). Round 3. The winner is NICK_VNV
« Reply #3 on: December 23, 2014, 07:09:13 PM »
Are these the actual implementation or a function that mimics them?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Closed: Test yourself (for fun). Round 3. The winner is NICK_VNV
« Reply #4 on: December 23, 2014, 07:11:54 PM »

Mimic

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.