Code close to the challenge: Inception
Frink, distance 24

Calculate[the,Levenshtein]:=editDistance[the,Levenshtein]


To use this, you would call Calculate with the two strings, and since this is returning, you also need to surround the call with print[]. If this isn't allowed, my score is 30.

Example:

Calculate["kitten","spork"]        -&gt; returns 6
print[Calculate["kitten","spork"]] -&gt; prints 6.


You need to download Frink, as the web interpreter doesn't allow defining functions. It should run on all systems, considering it's a Java applet. Download instructions here..



Psst. Hey! Here's a Levenshtein implementation in Symbolic, something I'm working on: k=λ:Δ(ί,ί).