You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to make that macro print objects with the same formatting as pprint, the problem is that pprint is not a macro that sends args to a formatter and redirects the output to stdout, pprint is a function that just formats & prints a complex structure. My suggestion consists in creating a function that instead of printing the formatted structure to stdout, just returns it, so I can call that macro like this:
I have my own macros for printing stuff on different situations and not putting conditionals everywhere, for example:
I'd like to make that macro print objects with the same formatting as pprint, the problem is that pprint is not a macro that sends args to a formatter and redirects the output to stdout, pprint is a function that just formats & prints a complex structure. My suggestion consists in creating a function that instead of printing the formatted structure to stdout, just returns it, so I can call that macro like this:
The text was updated successfully, but these errors were encountered: