lambdaway
::
block_edit
7
|
list
|
login
|
load
|
|
{require lib_block_edit} {editor} {{eblocks} {block b1 _h1 block 1 _p First require the {b lib_block_edit} library, then write {pre '{editor} '{{eblocks} {block id1 _h1 block 1 ... } {block id2 _h1 block 2 ... } and so on } // end of eblocks } } {block b2 _h1 block 2 {prewrap '{def fac {lambda {:n} {if {< :n 1} then 1 else {long_mult :n {fac {- :n 1}}} }}} -> {def fac {lambda {:n} {if {< :n 1} then 1 else {long_mult :n {fac {- :n 1}}}}}} '{fac 100} -> {fac 100} }} {block b3 _h1 block 3 _p «All the examples presented are live, the code is active and can be modified. Safe and secure. The code snippets are not tested elsewhere in a programming console, in another "interactive development environment". Everything is calculated and drawn in real time on this page and the page is written, structured and enhanced using the same syntax. Yes, we can't put some words in bold like we do in modern text editors, by simply selecting them with the mouse and clicking a bold [B] button, we have to surround them with braces and write the b character added to the first one, it looks like a throwback to the first age of computers, it looks stupid. But in doing so, we are gently introduced to a powerful syntax that leads us to rich constructs, opening a window into the world of code. » } {block b4 _h1 block 4 _img data/amelie_poulain } {block b5 _h1 block 5 xxx} } ;; end eblocks {style ;; body, #page_frame, .page_menu { box-shadow:0 0 0 #000; border:0px solid #000; margin-left:0px; background:#444; color:#fff; } #page_content { box-shadow:0 0 0 #000; border:1px solid #444; margin-left:0; width:1000px; background:#444; color:#fff; } #inline-blocks .block_edit { display:inline-block; background:#666; width:300px; height:500px; } }
lambdaway v.20211111