Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created May 25, 2017 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/269379aebe538214b7a37d94dd05187e to your computer and use it in GitHub Desktop.
Save zoffixznet/269379aebe538214b7a37d94dd05187e to your computer and use it in GitHub Desktop.
use nqp;
class B2 does Blob {
multi method new2(Blob: Blob:D $blob) {
nqp::splice(nqp::create(self),$blob,0,0)
}
multi method new3(Blob: Blob:D $blob) {
nqp::splice($blob, nqp::create(self), nqp::elems($blob), 0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment