edit history of a function

Let it all hang out

edit history of a function

PostPosted by drab » Sat Oct 07, 2017 6:36 am

Since you're already saving the edit history of a function for possible undo, much better use could be made of it.

If the left argument of ⎕cr is a negative integer -n, then it could return the contents of the function with n undo's applied.

If not enough undo's are available to satisfy the request, then it could (preferably) just back up as far as it can. Or, maybe it could give an empty matrix or an error.
drab
 
Posts: 315
Joined: Thu Oct 09, 2014 6:23 am

Re: edit history of a function

PostPosted by drab » Sat Oct 07, 2017 6:40 am

And the maximum number of available undo's could be provided by a new variant of ⎕at (5 ⎕at).
drab
 
Posts: 315
Joined: Thu Oct 09, 2014 6:23 am


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron