Author Topic: Closed: Test yourself (for fun). Round 2. The winner is John Kaul (Se7en)  (Read 2585 times)

0 Members and 1 Guest are viewing this topic.

divtiply

  • Guest
Recognize the name of (lambda (x y) (not (vl-member-if-not x y)))
(This function is exists in current AutoCAD's Lisp)
« Last Edit: December 23, 2014, 02:44:11 PM by divtiply »

Bhull1985

  • Guest
Re: Test yourself (for fun). Round 2.
« Reply #1 on: December 23, 2014, 02:26:53 PM »
(vl-member-if)
?

JohnK

  • Administrator
  • Seagull
  • Posts: 10655
Re: Test yourself (for fun). Round 2.
« Reply #2 on: December 23, 2014, 02:31:09 PM »
I'd say vl-every but that's Visual Lisp.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

divtiply

  • Guest
Re: Test yourself (for fun). Round 2.
« Reply #3 on: December 23, 2014, 02:33:37 PM »
I'd say vl-every but that's Visual Lisp.
CORRECT!
VisualLisp is current AutoCAD Lisp

JohnK

  • Administrator
  • Seagull
  • Posts: 10655
Re: Closed: Test yourself (for fun). Round 2. Whe winner is John Kaul (Se7en)
« Reply #4 on: December 23, 2014, 02:36:24 PM »
I am the smartest man alive!
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

divtiply

  • Guest
Re: Closed: Test yourself (for fun). Round 2. Whe winner is John Kaul (Se7en)
« Reply #5 on: December 23, 2014, 02:41:00 PM »
I am the smartest man alive!

Bonus round:
Can you define vl-some?

JohnK

  • Administrator
  • Seagull
  • Posts: 10655
Re: Closed: Test yourself (for fun). Round 2. Whe winner is John Kaul (Se7en)
« Reply #6 on: December 23, 2014, 02:46:53 PM »
Off the top of my head? No!? To be honest, I haven't done any lisp in almost 7 years now (I'm a C++ guy); I had to look through the list of functions to get the "vl-every answer".  My Auto/Visual Lisp knowledge is running on fumes.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

VovKa

  • Water Moccasin
  • Posts: 1632
  • Ukraine
Re: Test yourself (for fun). Round 2.
« Reply #7 on: December 23, 2014, 04:06:11 PM »
I'd say vl-every but that's Visual Lisp.
CORRECT!
VisualLisp is current AutoCAD Lisp
but it is not 'absolutely' correct
Code: [Select]
(vl-every '= '(1 2 3) '(1 2 3))

divtiply

  • Guest
Re: Closed: Test yourself (for fun). Round 2. The winner is John Kaul (Se7en)
« Reply #8 on: December 23, 2014, 04:13:38 PM »
Yes, it can accept only one list.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

divtiply

  • Guest
Re: Closed: Test yourself (for fun). Round 2. The winner is John Kaul (Se7en)
« Reply #10 on: December 23, 2014, 04:31:26 PM »
Bonus round:
Can you define vl-some?

See http://www.theswamp.org/index.php?topic=7806.5

Actually, the answer in current terms is
(lambda (x y) (and (vl-member-if x y)))
That why it is a bonus question...

tedg

  • Swamp Rat
  • Posts: 811
Re: Test yourself (for fun). Round 2.
« Reply #11 on: December 24, 2014, 06:35:19 AM »
I'd say vl-every but that's Visual Lisp.
CORRECT!
VisualLisp is current AutoCAD Lisp

Windows 10 Pro 64bit, AutoCAD 2023, REVIT 2023