Warning: Declaration of action_plugin_subjectindex_indexer::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/subjectindex/action/indexer.php on line 15

Warning: Declaration of action_plugin_mathjax_enable::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/mathjax/action/enable.php on line 62

Warning: Declaration of action_plugin_googleanalytics::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/googleanalytics/action.php on line 40

Warning: Declaration of action_plugin_folded::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/folded/action.php on line 40

Warning: Declaration of action_plugin_hidden::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/hidden/action.php on line 28

Warning: Declaration of action_plugin_include::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/include/action.php on line 354

Warning: Declaration of action_plugin_tag::register(&$contr) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/tag/action.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/subjectindex/action/indexer.php:15) in /data/web/virtuals/28604/virtual/www/subdom/bo/inc/auth.php on line 532

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /data/web/virtuals/28604/virtual/www/subdom/bo/inc/auth.php on line 818

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/subjectindex/action/indexer.php:15) in /data/web/virtuals/28604/virtual/www/subdom/bo/inc/actions.php on line 656

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/28604/virtual/www/subdom/bo/lib/plugins/subjectindex/action/indexer.php:15) in /data/web/virtuals/28604/virtual/www/subdom/bo/inc/actions.php on line 656
YPP1:Z7.scm

======Z7.scm====== <code shell>#!/usr/bin/env racket #lang racket/base</code> 7. zpravidla vyhodnocovacky <code scheme> (list cons 'a 10) </code> ++=>|'(#<proc cons> a 10)++ <code scheme> (((lambda x) x) 'a 'b 'c) ;error nebo blbe zadani ((let ((x -)) x) 10 20 30) </code> ++=>| -40++ <code scheme> ((car (list map)) - '(1 2 3)) </code> ++=>| '(-1 -2 -3)++ <code scheme> (or 1 foo 2) </code> ++=>| 1++ <code scheme> (apply list '(a b) '(c d)) </code> ++=>| '%%((a b) c d)%%++ <code scheme> (eval (let ((x 5)) (lambda (y x)))) ;error nebo blbe opsano ((lambda (x) `(x `(,x ,,x))) 10) </code> ++=>|'(x `(,x ,10))++ <hidden rozepsano, zdůvodnění> <code scheme> ((lambda (x) `(x `(,x ,,x))) 10) ; |_| |\__,x je vnejsi, pro (x 10) ; |____| vnitrni quasiquote se nevyhodnoti ;bezprostředně aplikovaná ((lambda ...) 10) vrací '(x `(,x ,10))) </code> </hidden> <code scheme> (cadar '((a b) (c d) (e f))) </code> ++=>| 'b++ <code scheme> (let x ((y 10)) (list x y)) </code> ++=>|'(<proc> 10)++ <code scheme> ; vim: syntax=racket </code>