Files
wren/builtin
Thorbjørn Lindeijer 94804fe1a0 Added Sequence.count(predicate)
Returns the number of elements in the sequence that pass the
`predicate`.

It could also have been implemented as:

  count(f) { reduce(0) {|a, b| f.call(b) ? a + 1 : a } }

But I considered the simple version more readable.

Also documented Sequence.count.
2015-03-19 21:10:05 +01:00
..
2015-03-19 21:10:05 +01:00
2015-01-11 21:47:29 -08:00
2014-02-04 08:44:59 -08:00

The Wren scripts in this directory get converted to C string literals and then inserted into their respective .c files so that the interpreter can load them directly without having to do any file IO.

The script that does this copying is script/generate_builtins.py.

You can invoke using make builtin.