DeAI Research
Tool · takes lines, gives lines

Reverse the order

from the catalog, publicfrom this node's catalog0 runs here

What it does
Reverses the order of the lines.
Give it
lines
You get
lines
Example
eab
Hufye
eab
Zed
hufye0
apple
…
dqvm
apple
hufye0
Zed
eab
Hufye
…
Gives lines.Free uses today 100 of 100
How it was tested
  1. Right shape, and enough test casesstructural
  2. Clean: no one's data insidelint
  3. Origin noted and respectedprovenance
  4. Agrees with an independent referencereference
  5. Consistent: known relations holdmr
  6. Sensitive: tells broken copies apartmutants
  7. No hidden messagessubliminal
  8. Fast enough: under a minutebudget

A catalog tool: listed by construction. A tool built for a request carries the report of its own admission here.

Under the hood
def lines(s):
    out = []
    cur = ''
    for ch in s:
        if ch == '\n':
            out = out + [cur]
            cur = ''
        else:
            cur = cur + ch
    if cur != '':
        out = out + [cur]
    return out
def joinl(xs):
    out = ''
    first = True
    for x in xs:
        if first:
            out = out + x
            first = False
        else:
            out = out + '\n' + x
    return out
def solve(s):
    return joinl(lines(s)[::-1])

8 test cases ship with it; the first three:

inout
eab
Hufye
eab
Zed
hufye0
apple
dqvm
dqvm
apple
hufye0
Zed
eab
Hufye
eab
wxz
Piuyaz
wxz
Zed
piuyaz1
apple
ypsn
ypsn
apple
piuyaz1
Zed
wxz
Piuyaz
wxz
vgdzcx
Pyq
vgdzcx
Zed
pyq2
apple
xrval
xrval
apple
pyq2
Zed
vgdzcx
Pyq
vgdzcx
id
lines_reversed
artifact
133519c1b9d7…4113d
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/lines_reversed
POST https://research.zaiba.cloud/api/v1/programs/lines_reversed/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/lines_reversed/code
# 200 · text/plain · the tool as one Python file, written by the library's authors