a.mua 616 B

123456
  1. make "f [ [ ] [ print "a ] ]
  2. make "pi 3.141592654
  3. make "length [ [ x ] [ if isempty :x [ return 0 ] [ return add length butfirst :x 1 ] ] ]
  4. make "reverse [ [ x ] [ if isempty :x [ return :x ] [ if islist :x [ return join reverse butfirst :x first :x ] [ return word reverse butfirst :x first :x ] ] ] ]
  5. make "find [ [ lst x ] [ if isempty :lst [ return false ] [ if eq first :lst :x [ return true ] [ return find butfirst :lst :x ] ] ] ]
  6. make "index [ [ lst x ] [ if isempty :lst [ return -1 ] [ if eq first :lst :x [ return 0 ] [ make "i index butfirst :lst :x if eq :i -1 [ return -1 ] [ return add :i 1 ] ] ] ] ]