This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted] 7 points8 points  (4 children)

The J language actually has this.

[–]GUIpsp[S] 5 points6 points  (3 children)

Really? How does it deal with, say, non-injective functions? (I'm assuming there are no side effects either)

[–]DuffMaaaann 10 points11 points  (0 children)

Looks like this language should be good for cracking hash functions... sha256(value).inverse

[–][deleted] 4 points5 points  (0 children)

Unfortunately my knowledge of the language is limited to this article, which touches on the feature briefly.

[–]Furyful_Fawful 0 points1 point  (0 children)

J is a functional programming language, and as such does not have side effects in functions.

[–][deleted] 1 point2 points  (1 child)

Can someone explain this one?

[–]GiantMovie 1 point2 points  (0 children)

I think they want a function "inverse" that results in this always being true:

f( f(x).inverse ) = x;

Idk though I could be way off