Skip to content

Commit

Permalink
Adapting to new List type (part 9).
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoejp committed Apr 1, 2024
1 parent c0d9793 commit f75d50a
Show file tree
Hide file tree
Showing 111 changed files with 1,959 additions and 1,849 deletions.
1 change: 1 addition & 0 deletions documentation/bookmark/computation/reversible.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Reference

0. [Colin Wright - Colours Can Compute - CoM Apr 2021](https://www.youtube.com/watch?v=f3dTmO1JfmY)
0. [RRUST: A REVERSIBLE EMBEDDED LANGUAGE](https://blog.erk.dev/posts/rrust/)
0. [Arrow: A Modern Reversible Programming Language](https://digitalcommons.oberlin.edu/cgi/viewcontent.cgi?article=1269&context=honors)
0. [Stanford Seminar - Generalized Reversible Computing and the Unconventional Computing Landscape](https://www.youtube.com/watch?v=IQZ_bQbxSXk)
Expand Down
1 change: 1 addition & 0 deletions documentation/bookmark/design/performance.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Reference

0. [InstantClick](http://instantclick.io/)
0. [Psychology of Speed: A Guide to Perceived Performance](https://calibreapp.com/blog/perceived-performance)

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

0. [Generative UI and Outcome-Oriented Design](https://www.nngroup.com/articles/generative-ui/)

1 change: 1 addition & 0 deletions documentation/bookmark/mathematics/proof.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Reference

0. [Mathematics in Lean](https://leanprover-community.github.io/mathematics_in_lean/)
0. [The Mechanics of Proof](https://hrmacbeth.github.io/math2001/index.html)
0. [The mechanics of proof](https://hrmacbeth.github.io/math2001/)
0. [Basics of Proofs](https://theory.stanford.edu/~jvondrak/MATH108-2017/Proofs.pdf)
Expand Down
4 changes: 4 additions & 0 deletions documentation/bookmark/security/environment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

0. [Open Enclave SDK](https://openenclave.io/sdk/)

29 changes: 15 additions & 14 deletions stdlib/source/library/lux/abstract/monad/indexed.lux
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
["?" projection]]
[data
[collection
["[0]" list (.use "[1]#[0]" functor mix)]
["[0]" stack (.use "[1]#[0]" functor mix)]]]
["[0]" macro (.only)
["[0]" syntax]]
Expand Down Expand Up @@ -75,20 +76,20 @@
context (?code.tuple (?.some context))
expression ?code.any])
(macro.with_names ['_ 'then]
(let [body (stack#mix (function (_ context next)
(when context
{#Macro macro parameter}
(` ((, (code.name macro))
(, parameter)
(, next)))
{#Binding [binding value]}
(` ((, 'then)
(.function ((, '_) (, binding))
(, next))
(, value)))))
expression
(stack.reversed context))]
(let [body (list#mix (function (_ context next)
(when context
{#Macro macro parameter}
(` ((, (code.name macro))
(, parameter)
(, next)))

{#Binding [binding value]}
(` ((, 'then)
(.function ((, '_) (, binding))
(, next))
(, value)))))
expression
(list.reversed context))]
(in (stack (when ?name
{.#Some name}
(let [name (code.local name)]
Expand Down
Loading

0 comments on commit f75d50a

Please sign in to comment.