## Snippets tagged continuation

• ### Tree searching using Tail recursion with continuation

Sample code which demonstrate tree searching using : Tail recursion with continuation

15 people like this

Posted: 13 years ago by Ankur Dhama

• ### Call/CC for Async

An implementation of call-with-current-continuation for Async.

2 people like this

Posted: 12 years ago by Ryan Riley

• ### Insertion Sort on List

A continuation function takes the result when it is computed. Here is an implementation of sorting on List via insertion.

4 people like this

Posted: 11 years ago by Joel Huang

• ### Functional Argument Accumulator

Applicative style argument accumulator functions inspired by the FParsec.Pipes library. It works by weaving a single continuation argument like a chain, kind of like the pipe function of FParsec but with a arbitrary number of arguments.

3 people like this

Posted: 7 years ago by Marko GrdiniÄ‡

• ### Continuation Monad with Call/CC

This is an implementation of the Continuation monad using a type, taking an exception handler, and allowing for Call/CC. This specific implementation is mostly Matt Podwysocki's. I have a similar implementation using a purely functional, exception-handler-less version in FSharp.Monad. Until now, I haven't been able to resolve the callCC operator.

4 people like this

Posted: 12 years ago by Ryan Riley

• ### Appending Two Lists Based on A Discriminated Union Type Using Continuation

Lists are pointers to the head of list. It can be defined by a discriminated union type. Using continuation can do a tail-recursion version of appending two lists.

3 people like this

Posted: 11 years ago by Joel Huang

• ### Fibonacci snippet implement with Continuation

Normally, when we implement Fibonacci sequence, we use recursive function, but it will encounter the overflow exception with the big data. Below is the Fibonacci snippet with continuation, and in this way, it won't encounter the overflow exception.

6 people like this

Posted: 11 years ago by Jeallyn Duan

• ### Continuation monad for mortals

Basic implementation of the continuation monad with explanation.

9 people like this

Posted: 4 years ago by Brian Berns