Queue.find.list.choose: def of bend-kit-scheduler@0.4.1.0
Import: import bend-kit-scheduler@0.4.1.0/queue.bend as Queue
Lines 98-104 of bend-kit-scheduler@0.4.1.0/queue.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-scheduler@0.4.1.0/queue.bend&start_line=98&end_line=104
import Base
# Reference observation for laws; completion uses the single-pass take below.
def find.list.choose(-A: Data, b: Bool, t: Ticket, rest: Maybe<&2, Ticket>) -> Maybe<&2, Ticket>:
match b:
case True{}:
Some{t}
case False{}:
rest
Uses (3):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe
https://jend.leeeet.dev/definition.txt?path=bend-kit-scheduler@0.4.1.0/queue.bend&name=Ticket