1 module orelang.operator.UUIDOperators; 2 import orelang.operator.IOperator, 3 orelang.Engine, 4 orelang.Value; 5 import std.conv, 6 std.uuid : randomUUID; 7 8 class RandomUUIDOperator : IOperator { 9 /** 10 * call 11 */ 12 13 Value call(Engine engine, Value[] args) { 14 return new Value(randomUUID.to!string); 15 } 16 }