2020欧洲杯时间表

Dark mode beta

You’ve been asking for dark mode for years.
2020欧洲杯时间表 The is finally here.

Change your preferences any time.

Questions tagged [lisp]

Lisp is a family of general purpose programming languages, influenced by the lambda calculus, and with the ability to manipulate source code as a data structure.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Comma not inside a backquote

I have been following http://www.gigamonkeys.com/book/ . In the chapter http://www.gigamonkeys.com/book/practical-building-a-unit-test-framework.html there is a macro called check which has following ...
-1
votes
0answers
10 views

LISP Programming Concerns

This is a simple question, but does anyone know how to find the largest of four numbers in a LISP program? I need to use an if statement for it but anyone else I've asked only uses conditional ...
0
votes
1answer
30 views

Scheme sublists of equal numbers: [closed]

Using Scheme/Lisp I want to code a function that takes in a list and return a list of sublists of equal numbers: For example (sublist '(1 1 5 5 5 0 2 2)) Returns ((1 1)(5 5 5)(0)(2 2))
0
votes
1answer
20 views

difference in “if” and “cond” in Scheme

I'm learning Berkeley CS61A using Scheme. pigl function is used to introduce recursion and the sample code is as follows (define (pigl wd) (if (pl-done? wd) (word wd 'ay) (pigl (word (bf ...
0
votes
1answer
19 views

Cannot take CAR of 2 (Common Lisp)

I'm new to Lisp and I'm trying to get to where I can iterate through a list of varying depth with CAR/CDR recursion. I've seen similar questions, but none address the exact problem I'm running into or ...
0
votes
1answer
38 views

How to run this lisp functional programming code?

I am trying to run this code that supposedly removes duplicates from a sorted list of numbers. (defun unique (x) (cond( (null x) x ) ( (null (cdr x)) x )( (equal (car x) (cdr x)) (unique (cdr x)) ...
0
votes
0answers
53 views

Longest subset of numbers in Scheme [duplicate]

I'm new to learning scheme so I have a few questions. So I am writing a program that looks within a given list and returns the longest subset of identical numbers. i.e (longestsubset '(1 2 3 3 4 5)) ...
1
vote
1answer
42 views

SIMPLE-READER-ERROR , illegal sharp macro character, Subcharacter #\< not defined for dispatch char #\#

In chapter 4 of the book, Successful Lisp, by David B. Lamkins, there is a simple application to keep track of bank checks. http://dept-info.labri.fr/~strandh/Teaching/MTP/Common/David-Lamkins/...
0
votes
0answers
33 views

How to compile static racket binaries

raco exe makes dynamic executables, and raco distribute doesn't change that: $ ldd ./tst linux-vdso.so.1 (0x00007ffc9ed46000) libpthread.so.0 => /lib/...
0
votes
1answer
37 views

Insertion Sort in Common lisp

I want to implement the sorting function in common-lisp with this INSERT function k means cons cell with number & val, and li means list where I want insert k into. with this function, I can make ...
0
votes
1answer
59 views

How to use items in a list as arguments to a function in LISP?

This is for a school assignment. I wrote multiple functions, each with a different amount of arguments. I am required to create a REPL function that works with all of the functions in my project. ...
0
votes
2answers
55 views

Common Lisp function to determine lengths of nested lists in a list

I am only allowed to use the do construct, concept which i still can't get a grasp of. I tried the following code, but it returns nil. (defun fun(list) (do ((i 0 (+ i 1)) (l '() (if (listp (nth i ...
1
vote
3answers
92 views

Clojure Core function argument positions seem rather confusing. What's the logic behind it?

For me as, a new Clojurian, some core functions seem rather counter-intuitive and confusing when it comes to arguments order/position, here's an example: > (nthrest (range 10) 5) => (5 6 7 8 9)...
0
votes
1answer
37 views

My function doesn't work. I get this error: define: expected only one expression for the function body, but found 1 extra part

I'm new to programming and I'm learning the Scheme language using DrRacket version 7.5. I'm trying to create a function which takes in a number. The number should then be added to a value that is one ...
0
votes
1answer
26 views

Return date and time in another format autocad

I have a little problem with my code. I want to disply the time and date in format from autocad is displayed. For example tdcreate command in autocad show 2458753.59648148 but this code show in the ...

15 30 50 per page
1
2 3 4 5
407