LISP is a general-purpose advanced computer programming language that has long monopolized applications in the field of artificial intelligence. LISP is a language designed in response to artificial intelligence. It is the first declarative in-system functional programming language. It is different from the in-system procedural C, Fortran, and object-oriented Java, C# and other structured programming languages. .
As with most other languages, the best way to learn Lisp is to practice. Open your interpreter and code with me. Lisp is basically a compiled language that can be easily programmed with a direct typing command.
Basically, Lisp is a language about lists. Everything in Lisp (from data to the code that makes up the application) is a list. Each list consists of a number of atoms and lists. The number is an atom. Typing a number will simply return that number as a result.
First, the mathematical operation function
1.1 (ten numeric value...) return: cumulative real or integer value
1.2 (a numerical value...) return: difference
1.3 (* numeric value...) return: all numerical product
1.4 (/ numerical value...) Returns: the first value divided by the second and subsequent values
1.5 (l ten value) return: value ten l
1. 6 (1 - value) return: value l
1.7 (abs value) returns: the absolute value of the value
1.8 (atan value) return: the inverse tangent value
1.9 (cos angle) returns: the cosine of the angle, the angle value is radians
1.10 (exp value) returns: the index of the value
1.11 (expt base index) returns: the index value of the base
1.12 (fix value) return: convert the value to an integer value
1.14 (gcd value 1 value 2) returns: the greatest common factor of the two values
1.15 (log value) return: the natural logarithm of the value
1.16 (max numerical value...) returns: the maximum value in the value
1.17 (min value value...) return: the minimum value in the value
1.18 pi constant âˆ, its value is about 3.1415926
1.19 (rem value 1 value 2) returns: the remainder of the division of the M value
1.20 (sin angle) returns: the positive rotation of the angle, the angle value is radians
1.21 (sqrt value) returns: the square root of the value
Second, the test and logic operation function
2.1 (= expression 1 expression 2) compares whether expression 1 is equal to formula 2, applicable values ​​and strings
2.2 (/= expression 1 expression 2) compares whether expression 1 is greater than or equal to expression 2 2.3 (< expression 1 expression 2) compares whether expression 1 is less than expression 2
2.4 (<= expression 1 expression 2) compares whether expression 1 is < one less than or equal to expression 2
2.5 (> expression 1 expression 2) compares whether expression 1 is > greater than expression 2
2.6 (>= expression 1 expression 2) Compare expression 1 is greater than or equal to expression 2
2.7 (~ value) return: the value of the bit not, (1's complement)
2.8 (and expression 1 expression 2...) returns: the result of logical and
2.9 (boole function integer integer...) return: bitwise Boolean operation
2.10 (eq expression 1 expression 2) compares whether expression 1 and expression 2 are the same, and applies list comparison (actually the same)
2.11 (equal expression 1 expression 2 [difference]) compares whether expression 1 and expression 2 are the same, and the difference can be omitted (the content is the same)
Third, the conversion operation function
3.1 (angtof string [mode]) returns: the string of the angle value is converted to a real number
3.2 (angtos angle [mode [precision]]) returns: the string value converted into an angle
3.3 (atof string) return: string converted to real value
3.4 (atoi string) return: string converted to integer value
3.5 (cvunit value raw unit conversion unit) return: value conversion unit after the value conversion according to acad.nut file
3.6 (distof string [mode]) returns: converts the string to a real value according to the mode
3.7 (itoa integer) return: integer converted to a string
3.8 (rtos numeric mode [precision]) returns: real numbers into strings
3.9 (trans point original position new position [displacement]) Return: Convert coordinate system value
Fourth, the list processing function
4.1 (append list list...) Combine all lists into one list
4.2 (assoc key element joint list) find relationship information in federated list based on key elements
4.3 (car list) returns the first element in the list, usually used to find the X coordinate
4.4 (cadr list) returns the second element in the list, usually used to find the y coordinate
4.5 (caddr list) returns the third element in the list, usually used to find the Z coordinate
4.6 (cdr list) returns: the list after removing the first element
4.7 (cons new element list) return: add new elements to the list
4.8 (foreach name list expression) returns: each element of the list is assigned to the name and then responds according to the expression
4.9 (length list) returns: the number of elements in the list
4.10 (list element element...) return: merge all elements into a list
4.11 (listp element) return: determine whether the element is a string
4.12 (mapcar function list 1 list 2...) returns: the elements of the list 1 and list 2 are matched with the function to obtain a new list.
4.13 (member key element list) return: according to key elements (including post-like list
4.14 (nth n list) returns: the nth element of the list
4.15 (reverse list) returns: a list of list elements reversed according to order
4.16 (subst new item old item list) return: replace the list after the new and old list
Five, string, character, file processing function
5.1 (ascii string) returns: the "ASCII" code of the first character of the string
5.2 (chr integer) Returns: the ASCII single string corresponding to the integer
5.3 (close file name) close the file
5.4 (open file name mode) return: open the file code, ready to read or write information
5.5 (read string) returns: the first set of elements of the string in the list
5.6 (read-char [file code]) return: read a single character through the keyboard or file
5.7 (read-line [file code]) return: read a line of string via keyboard or file
5.8 (strcase string [typeface]) return: conversion string capitalization
5.9 (strcat string 1 string 2...) Returns: merges each string into a string
5.10 (strlen string) Returns: the number of characters formed by the string (ie the length of the string)
5.11 (substr string start length) returns: taken in the string '
5.12 (wcmatch string format) returns: T or nil, comparing strings with common characters
5.13 (write-char value [file code]) return: write an ASCII character to a file or screen
5.14 (write-line string [file code]) return: write the string to a file or screen
The HCOW MONSTER Disposable Vape Devices are designed with simple vaping in mind.It Featuring 12ml of E-Liquid,has a nicotine strength of 5% nicotine salt, offering a smooth inhale and satisfying vape.HCOW MONSTER Disposable Vape internal 500mAh battery,approximately 600 puffs of vaping enjoyment.
HCOW IMONSTER features:
Puffs:6000Puffs
Battery Capacity:1000mAh
E-liquid Volume:12ml
Nicotine Content:5% nicotine salt
HCOW IMONSTER comes with:
1*HCOW IMONSTER Disposable Vape
Hcow Imonster 6000Puffs,6000 Puffs Vape ,15Ml Of E-Liquid ,Electronic Cigarette Vape Puff Bar
Shenzhen Kester Technology Co., Ltd , https://www.kesterpuff.com