LISP Functions

終了済み 投稿 5年前 着払い
終了済み 着払い

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

PHP ソフトウェアアーキテクチャ

プロジェクトID: #18071595

プロジェクトについて

4個の提案 リモートプロジェクト アクティブ 5年前

4人のフリーランサーが、平均$24 で、この仕事に入札しています。

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 もっと

$30 USD 0日以内
(67件のレビュー)
6.0
tuanthanhle

i can do it

$30 USD 1日以内
(8件のレビュー)
3.6
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 もっと

$10 USD 0日以内
(0件のレビュー)
0.0