Skip to content

Instantly share code, notes, and snippets.

@homedirectory
Created April 13, 2024 09:59
Show Gist options
  • Save homedirectory/8fb473ad21af8dda92ac3f03e161299d to your computer and use it in GitHub Desktop.
Save homedirectory/8fb473ad21af8dda92ac3f03e161299d to your computer and use it in GitHub Desktop.
Service used for data extraction from unstructured HTML: https://www.kadoa.com
Data source: http://clhs.lisp.se/Body/f_map.htm
Resulting JSON:
[
{
"id": "661a5232c700f85cf0e07c91",
"data": {
"functionName": "MAP",
"examples": "(map 'string #'(lambda (x y) (char \"01234567890ABCDEF\" (mod (+ x y) 16))) '(1 2 3 4) '(10 9 8 7)) => \"AAAA\" (setq seq '(\"lower\" \"UPPER\" \"\" \"123\")) => (\"lower\" \"UPPER\" \"\" \"123\") (map nil #'nstring-upcase seq) => NIL seq => (\"LOWER\" \"UPPER\" \"\" \"123\") (map 'list #'- '(1 2 3 4)) => (-1 -2 -3 -4) (map 'string #'(lambda (x) (if (oddp x) #\\1 #\\0)) '(1 2 3 4)) => \"1010\"",
"syntax": "map result-type function &rest sequences+ => result",
"argumentsDescription": "result-type -- a sequence type specifier, or nil. function---a function designator. function must take as many arguments as there are sequences. sequence---a proper sequence. result---if result-type is a type specifier other than nil, then a sequence of the type it denotes; otherwise (if the result-type is nil), nil."
},
"source": "http://clhs.lisp.se/Body/f_map.htm",
"lastUpdated": "2024-04-13T09:40:39.122Z",
"costCredit": 1
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment