# Include a new yield-accept filterable form

**URL:** <https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127>\
**Category:** 💡 Ideas\
**Tags:** proposal\
**Created:** [December 20, 2021, 6:36am UTC](https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127 "2021-12-20T06:36:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seagat2011](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/seagat2011/32/367_2.png) [@Seagat2011](https://es.discourse.group/u/Seagat2011)\
**Post date:** [December 20, 2021, 6:36am UTC](https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127/1 "2021-12-20T06:36:57Z")

</div>

This yield-accept form is evaluated as an expression which returns a filter-able set, in this case the integer ring [0, 9], which in turn evaluates to a value to be compared and returned in O( 1 ).

let nMax = 100

function\* g(){  
yield 0  
}

function\* g(){  
yield 1  
}

function\* g(){  
yield 2  
}

function\* g(){  
yield 3  
}

function\* g(){  
yield 4  
}

function\* g(){  
yield 5  
}

function\* g(){  
yield 6  
}

function\* g(){  
yield 7  
}

function\* g(){  
yield 8  
}

function\* g(){  
yield 9  
}

function\* g2( v ) {  
yield\* Math.max( g(), 0 ) \< v  
}

let value = null  
let done = null

do {  
const { value, done } = g2( nMax ).next()  
console.log( value )  
nMax = value  
} while( !done )

```javascript

```

---

<div class="post-metadata">

**Author:** ![ljharb](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/ljharb/32/8_2.png) [@ljharb](https://es.discourse.group/u/ljharb)\
**Post date:** [December 20, 2021, 6:50am UTC](https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127/2 "2021-12-20T06:50:16Z")

</div>

I'm confused; those first 10 functions `g` already are valid JS that evaluate to "just the last function `g`".

---

<div class="post-metadata">

**Author:** ![conartist6](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/conartist6/32/515_2.png) [@conartist6](https://es.discourse.group/u/conartist6)\
**Post date:** [April 18, 2022, 1:45am UTC](https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127/3 "2022-04-18T01:45:06Z")

</div>

The poster has included their github, which features some code used for generation of natural language. I have a suspicion that this poster might be someone submitting the output from that NLP code. I'm thinking of something like [stackroboflow.com](https://stackroboflow.com/question/332189) -- a bot trained on a corpus of technical proposals and spec documents. It would explain why the proposals always have the elements you would expect like code samples and technical language, but never any clear intent or narrative.

I know too from reading that academia has seen NLP papers submitted to test their ability to mimic real human publications. I'm not sure I'm right, but it seems likely to me. Being often outlandish to the extent of being funny the posts usually seem to get some replies from incredulous individuals trying to explain in earnest why they don't make any sense... They seem basically harmless though.

If I'm off the mark as to what's going on here, I'm sorry.

---

<div class="post-metadata">

**Author:** ![Seagat2011](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/seagat2011/32/367_2.png) [@Seagat2011](https://es.discourse.group/u/Seagat2011)\
**Post date:** [April 18, 2022, 4:30pm UTC](https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127/4 "2022-04-18T16:30:02Z")

</div>

Thank You, all!

Kindest Regards,  
Thanos - The Final Avenger, Eternal Ruler & Wielder of the Infinity Stones

---

<div class="post-metadata">

**Author:** ![mhofman](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mhofman](https://es.discourse.group/u/mhofman)\
**Post date:** [April 18, 2022, 4:52pm UTC](https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127/5 "2022-04-18T16:52:59Z")

</div>

You may be on the mark here. Wild!

---

<div class="post-metadata">

**Author:** ![conartist6](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/conartist6/32/515_2.png) [@conartist6](https://es.discourse.group/u/conartist6)\
**Post date:** [April 18, 2022, 6:12pm UTC](https://es.discourse.group/t/include-a-new-yield-accept-filterable-form/1127/6 "2022-04-18T18:12:30Z")

</div>

For anyone who wants to make a blog post or eat some popcorn while having a laugh: [Search results for '@Seagat2011 #ideas' - TC39](https://es.discourse.group/search?q=%40Seagat2011%20%23ideas)
