Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[feature] pervasives: Added char_code_at.

  • Loading branch information...
commit 8ef610dba57235c7389c2080f6531979c6e2ed5b 1 parent 3726dad
@nrs135 nrs135 authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/plugins/opabsl/jsbsl/bslPervasives.js
View
6 lib/plugins/opabsl/jsbsl/bslPervasives.js
@@ -115,6 +115,12 @@ var op_neg = function (n) { return -n; };
function int_of_char(c){ return c.charCodeAt(0); }
/**
+ * @register {string, int -> int} char_code_at
+ * @pure
+ */
+function char_code_at(s, i){ return s.charCodeAt(i); }
+
+/**
* Physical equality between JS objects
*/
/**
Please sign in to comment.
Something went wrong with that request. Please try again.