Monads/List monad: Difference between revisions

Content added Content deleted
Line 239: Line 239:
{{out}}
{{out}}


We should get a list of Pythagorean triples that start with some integer between 1 and 25, inclusive.
We should get a list of some Pythagorean triples that start with some integer between 1 and 25, inclusive.


<pre>$ patscc -std=gnu2x -g -O2 -DATS_MEMALLOC_GCBDW list_monad_ats.dats -lgc && ./a.out
<pre>$ patscc -std=gnu2x -g -O2 -DATS_MEMALLOC_GCBDW list_monad_ats.dats -lgc && ./a.out