Sha256: 92a5abef35e0c298cfc74d834476f7a6a3f24adefda1f49a1bd4987160c93244

Contents?: true

Size: 454 Bytes

Versions: 7

Compression:

Stored size: 454 Bytes

Contents

Testing out
some functions 
here...

.func myfunc
"Eureka!"
.end

I am calling $$myfunc here...
Let's see 
what happens.

Functions can take a parameter in brackets 
(which it can parse itself as needed):

.func mean
  list = self.class.param
  list = list.split(",").map(&:to_f)
  sum = list.inject(0, :+)
  avg = sum / list.size.to_f
  avg.to_s
.end

The result is $$mean[1,2,3,4,5,6,7] as I see it.

Some functions like date and time are predefined.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
livetext-0.8.82 test/data/functions/source.lt3
livetext-0.8.81 test/data/functions/source.lt3
livetext-0.8.80 test/data/functions/source.lt3
livetext-0.8.79 test/data/functions/source.lt3
livetext-0.8.78 test/data/functions/source.lt3
livetext-0.8.77 test/data/functions/source.lt3
livetext-0.8.76 test/data/functions/source.lt3