Sha256: 3b9932fb056c1f1dc250f038aa4d6129969a706a44e1bbbd5a491a45ec7da488

Contents?: true

Size: 894 Bytes

Versions: 15

Compression:

Stored size: 894 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

15 entries across 15 versions & 1 rubygems

Version Path
livetext-0.9.49 test/snapshots/more_functions/source.lt3
livetext-0.9.42 test/snapshots/more_functions/source.lt3
livetext-0.9.41 test/snapshots/more_functions/source.lt3
livetext-0.9.40 test/snapshots/more_functions/source.lt3
livetext-0.9.39 test/snapshots/more_functions/source.lt3
livetext-0.9.38 test/snapshots/more_functions/source.lt3
livetext-0.9.37 test/snapshots/more_functions/source.lt3
livetext-0.9.36 test/snapshots/more_functions/source.lt3
livetext-0.9.35 test/snapshots/more_functions/source.lt3
livetext-0.9.33 test/snapshots/more_functions/source.lt3
livetext-0.9.32 test/snapshots/more_functions/source.lt3
livetext-0.9.31 test/snapshots/more_functions/source.lt3
livetext-0.9.30 test/snapshots/more_functions/source.lt3
livetext-0.9.27 test/snapshots/more_functions/source.lt3
livetext-0.9.26 test/snapshots/more_functions/source.lt3