lambdaspeech
::
UI
2
|
list
|
login
|
load
|
|
_h1 a universe in one line _p Following [[https://www.makeartwithpython.com/blog/10-print-in-python/|https://www.makeartwithpython.com/blog/10-print-in-python/]], we draw some {b labyrinthic universe} in one line '{lambda talk} code: {pre '{map {lambda {_} {if {< {floor {* {random} 2}} 1} then ╲ else ╱}} {serie 1 500}} } _p We call the function {b U1} in an HTML {b div} container carefully stylized: {pre '{div {@ style="font:normal 24pt courier; word-wrap:break-word; white-space:pre-wrap; line-height:23pt; letter-spacing:-8pt;"}} } _p and get this labyrinthic pattern: {div {@ style="font:bold 24pt monaco; word-wrap:break-word; white-space:pre-wrap; line-height:23pt; letter-spacing:-8pt;"} {map {lambda {_} {if {< {floor {* {random} 2}} 1} then ╲ else ╱}} {serie 1 500}} }
lambdaspeech v.20200126