From 652c29bdef1f0991cc13bef59d6dc78b657ae9a4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 8 Nov 2018 15:23:22 -0800 Subject: Major overhaul, splitting nomsu_compiler into nomsu_environment, nomsu_compiler, and nomsu_decompiler. Also added comprehensions. --- core/math.nom | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/math.nom') diff --git a/core/math.nom b/core/math.nom index 3bad78a..36d1d90 100644 --- a/core/math.nom +++ b/core/math.nom @@ -8,6 +8,8 @@ use "core/operators.nom" use "core/control_flow.nom" use "core/collections.nom" +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + # Literals: test: assume (all of [inf, NaN, pi, tau, golden ratio, e]) or barf "\ @@ -204,7 +206,7 @@ test: return %best # Random functions -externally (seed random with %) means (..) +externally (seed random with %) means: lua> "\ ..math.randomseed(\%); for i=1,20 do math.random(); end" -- cgit v1.2.3