Sha256: a1ca9af8c2dbbf7a8220dd9ae2f13f8e6089a4b95c3b4c9a4a77b79ae9c1e2f4

Contents?: true

Size: 895 Bytes

Versions: 4

Compression:

Stored size: 895 Bytes

Contents

Testing some more functions here...

.func just_do_it
  item = param
  # Do "something" with the parameter...
  return ""  # parameter disappears!
.end

Here I am calling a function $$just_do_it:foobar with 
a colon parameter...


Next let's *do* something with our parameter:

.func reverse
  param.reverse   # just reverse it
.end

I'll call these variants...

"Motel" spelled backwards is $$reverse:motel :)

"lamina" reversed is $$reverse:lamina

I can also use the $$reverse[bracket feature] here.

If I don't use a parameter for $$reverse - it gives
me an error. (Bug or feature??)

What if a function doesn't use parameters at all, but
we pass them? Hmm...

.func meditate 
   "succeed"   # just replaces params with this verb
.end

Now we $$meditate:slowly and $$meditate some more
and finally we $$meditate[on various things] in life.

But can we $$meditate, when our beds are burning?

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
livetext-0.9.25 test/snapshots/more_functions/source.lt3
livetext-0.9.24 test/snapshots/more_functions/source.lt3
livetext-0.9.23 test/snapshots/more_functions/source.lt3
livetext-0.9.22 test/snapshots/more_functions/source.lt3