Ditutup

LISP Functions

Hi I just started learning LISP, and I need someone to help me figure out how to write some functions. Message me for details

Define a function `Last` that takes two parameters, a symbol A and a list of symbols L, and returns the list starting where the last occurrence of symbol A is in L. It returns nil only if A is not in the list.
Examples:
. (Last 'a '(a b c a b c a b c d e f g)) --> (a b c d e f g)
. (Last 'b '(a b c a b c a b c d e f g)) --> (b c d e f g)
. (Last 'c '(a b c a b c a b c d e f g)) --> (c d e f g)
. (Last 'g '(a b c a b c a b c d e f g)) --> (g)
. (Last 'h '(a b c a b c a b c d e f g)) --> nil

Kemahiran: PHP, Kejuruteraan Perisian

Lihat lagi: lisp defun, common lisp functions, lisp program to add two numbers, lisp functions examples, lisp programs, lisp built in functions, lisp functions list, lisp define function, i need help to write a report, i need help to write an article, need help to write a book, i need help someone write this essay for me, i need help to write a book, i need help to write a report to my parents, need help to write an essay, as i rosina need help to write avidavite, i need help on write a paper, i need help to write an ad, i need help to write and publish a book, i need help to write an essay

Tentang Majikan:
( 0 ulasan ) Irvine, United States

ID Projek: #18071595

5 pekerja bebas membida secara purata $24 untuk pekerjaan ini

ahmsak

Hello Sir, I am a computer science tutor, I teach (among others) LISP, Haskell, and Advanced Algorithms. I have done many projects like this, and I'm one of the top LISP developers, and you can check by clicking on m Lagi

$30 USD dalam 0 hari
(66 Ulasan)
6.0
tuanthanhle

i can do it

$30 USD dalam sehari
(8 Ulasan)
3.1
jk31

Hello, such kind of problems, I will be able in not so much time. I am a common-lisper and Racket programmer, too. Oh I already solved the problem. It took me just 10 minutes. With tail call recursion. What Lagi

$10 USD dalam 0 hari
(0 Ulasan)
0.0
kakh8020

Dear Employer, I am a Civil Engineer with over 12 years experience in developing AutoCAD applications & add-ons as you may find some of them on my portfolio under my profile page. I read through the description y Lagi

$25 USD dalam 0 hari
(0 Ulasan)
0.0
d2011

We develope big LISP library won 1000..2000 functions..Only us can develope big-lisp programs for windowsXP+.The main trick is "write code source in C+".Our compilator(dot)exe transform the whole source into 100% Lisp. Lagi

$25 USD dalam 3 hari
(0 Ulasan)
0.0