Add PRNG to the Prelude.

This commit is contained in:
KtorZ
2024-03-01 16:47:17 +01:00
parent 41fdcbdfae
commit 5b4fedd084
4 changed files with 119 additions and 7 deletions

View File

@@ -847,6 +847,8 @@ where
let type_info = convert_opaque_type(&parameter.tipo, generator.data_types());
// TODO: Possibly refactor 'generate_raw' to accept arguments and do this wrapping
// itself.
let body = TypedExpr::Fn {
location: Span::empty(),
tipo: Rc::new(Type::Fn {